Skip to content

docs/refine-ai-docs-0803 - #465

Merged
Hanssen0 merged 3 commits into
ckb-devrel:masterfrom
CKBFansDAO:docs/refine-ai-docs
Aug 3, 2026
Merged

docs/refine-ai-docs-0803#465
Hanssen0 merged 3 commits into
ckb-devrel:masterfrom
CKBFansDAO:docs/refine-ai-docs

Conversation

@yixyxiu

@yixyxiu yixyxiu commented Aug 2, 2026

Copy link
Copy Markdown
Contributor

Summary

Refines the AI-resources documentation (packages/docs/content/docs/ai-resources/) for clarity and correctness, and surfaces this content from the README. Changes are applied to both English and Chinese versions.

Changes

  • Absolute URLs for self-referencing links: Converted relative documentation links to absolute URLs (e.g. /skill.mdhttps://docs.ckbccc.com/skill.md) in set-up-ai-tools. This is a pilot on a single file — the goal is to make links resolve correctly when this content is consumed outside the rendered site (e.g. fetched as raw Markdown by an AI tool, or copied into another tool's config/rules file), where relative paths have no meaningful base. A full pass across the remaining docs will follow once this is validated in practice.
  • Simplified canary questions in verify-and-troubleshoot for better clarity.
  • Restructured prompting-best-practices content.
  • Added an AI resources section to the README, linking out to this doc set.
  • All of the above applied consistently to both en and zh versions.

Why

The AI-resources docs are meant to be read by AI tools and agents as much as by humans (via /skill.md, .md page exports, llms.txt, etc.), so link portability outside the rendered site matters more here than in typical docs pages. The canary-question and prompting-best-practices edits are clarity/readability improvements based on review of the existing content.

Notes for reviewers

  • The relative → absolute link conversion is intentionally scoped to set-up-ai-tools only for this PR. Other pages (e.g. the llms.txt reference row in this same file, and any similar self-links elsewhere) still use relative paths and are left untouched pending a broader, consistent pass in a follow-up PR.
  • No changes to code, only to packages/docs content and the root README.md.

Testing

  • Verified the page renders correctly in the docs site.
  • Verified the .md export of the updated page resolves links correctly outside the rendered site.

yixyxiu added 2 commits August 3, 2026 00:51
…fied canary questions

- Convert relative documentation links to absolute URLs (e.g., /skill.md → https://docs.ckbccc.com/skill.md)
- Simplify canary questions in verify-and-troubleshoot for better clarity
- Restructure prompting best practices content
- Update both English and Chinese versions
- Add AI resources section to README
Fix missing double slashes in Agent Skills link (https:docs.ckbccc.com → https://docs.ckbccc.com)
@netlify

netlify Bot commented Aug 2, 2026

Copy link
Copy Markdown

Deploy Preview for apiccc ready!

Name Link
🔨 Latest commit 4c450bc
🔍 Latest deploy log https://app.netlify.com/projects/apiccc/deploys/6a6f80bd3c7ebd0008e13807
😎 Deploy Preview https://deploy-preview-465--apiccc.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 85 (🟢 up 2 from production)
Accessibility: 100 (no change from production)
Best Practices: 100 (no change from production)
SEO: 95 (no change from production)
PWA: -
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify

netlify Bot commented Aug 2, 2026

Copy link
Copy Markdown

Deploy Preview for liveccc ready!

Name Link
🔨 Latest commit 4c450bc
🔍 Latest deploy log https://app.netlify.com/projects/liveccc/deploys/6a6f80bd275a0f0008997594
😎 Deploy Preview https://deploy-preview-465--liveccc.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 33 (🔴 down 1 from production)
Accessibility: 88 (no change from production)
Best Practices: 92 (🔴 down 8 from production)
SEO: 100 (no change from production)
PWA: -
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify

netlify Bot commented Aug 2, 2026

Copy link
Copy Markdown

Deploy Preview for docsccc ready!

Name Link
🔨 Latest commit 4c450bc
🔍 Latest deploy log https://app.netlify.com/projects/docsccc/deploys/6a6f80bdb71cd50008c36828
😎 Deploy Preview https://deploy-preview-465--docsccc.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 81 (🔴 down 6 from production)
Accessibility: 95 (no change from production)
Best Practices: 92 (🔴 down 8 from production)
SEO: 75 (no change from production)
PWA: -
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to your Netlify project configuration.

@changeset-bot

changeset-bot Bot commented Aug 2, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 4c450bc

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@coderabbitai

coderabbitai Bot commented Aug 2, 2026

Copy link
Copy Markdown

Review Change Stack

Warning

Review limit reached

@yixyxiu, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 32 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: f3fd5f5f-603b-465b-a920-2dcc089cda7f

📥 Commits

Reviewing files that changed from the base of the PR and between 9582648 and 4c450bc.

📒 Files selected for processing (3)
  • README.md
  • packages/docs/content/docs/ai-resources/prompting-best-practices.mdx
  • packages/docs/content/docs/ai-resources/prompting-best-practices.zh.mdx
📝 Walkthrough

Summary by CodeRabbit

  • Documentation
    • Added guidance on AI coding assistants, supported tools, installation, and setup resources.
    • Updated Agent Skills and documentation links for reliable navigation.
    • Rewrote prompting guides with concise templates, environment-specific advice, verification practices, and common error corrections.
    • Clarified troubleshooting questions around transaction ordering and Node.js package usage in English and Chinese documentation.

Walkthrough

The PR adds Agent Skills installation guidance, converts AI Resources links to canonical absolute URLs, rewrites English and Chinese prompting guidance, and clarifies verification questions for transaction ordering and Node.js imports.

Changes

AI Resources documentation

Layer / File(s) Summary
Agent Skills setup and resource links
README.md, packages/docs/content/docs/ai-resources/index*, set-up-ai-tools*
The README documents Agent Skills categories and installation. AI Resources pages now use canonical absolute documentation URLs.
Prompting best-practices rewrite
packages/docs/content/docs/ai-resources/prompting-best-practices*
The English and Chinese guides now cover environment-specific prompts, verification before coding, task templates, common corrections, and follow-up checks.
Verification questions and diagnostics
packages/docs/content/docs/ai-resources/verify-and-troubleshoot*
The guides use the current Agent Skills URL and clearer transaction-order and Node.js import questions.

Estimated code review effort: 2 (Simple) | ~15 minutes

Possibly related PRs

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 inconclusive)

Check name Status Explanation Resolution
Title check ❓ Inconclusive The title identifies AI documentation work but is vague and does not state the primary documentation changes. Use a concise title that names the main change, such as "Refine AI resources documentation and README links".
✅ Passed checks (4 passed)
Check name Status Explanation
Description check ✅ Passed The description includes the required contributing-guidelines checklist and clearly documents the changes, rationale, scope, and testing.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@netlify

netlify Bot commented Aug 2, 2026

Copy link
Copy Markdown

Deploy Preview for appccc ready!

Name Link
🔨 Latest commit 4c450bc
🔍 Latest deploy log https://app.netlify.com/projects/appccc/deploys/6a6f80bd9701b0000815424f
😎 Deploy Preview https://deploy-preview-465--appccc.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 67 (🔴 down 10 from production)
Accessibility: 89 (🟢 up 1 from production)
Best Practices: 92 (🔴 down 8 from production)
SEO: 100 (no change from production)
PWA: -
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to your Netlify project configuration.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 3

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
packages/docs/content/docs/ai-resources/verify-and-troubleshoot.mdx (1)

1-1: 🗄️ Data Integrity & Integration | 🟡 Minor | ⚡ Quick win

Update the UDT prompt to mirror the skill/API form.

Verify & Troubleshoot and the UDT docs use udt.completeBy(tx, signer), but the UDT one-line fix says completeBy(tx, signer). Use udt.completeBy(...) in both prompting-best-practices.mdx#96 and prompting-best-practices.zh.mdx#95 so the copy-paste prompt does not encourage the wrong API form.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@packages/docs/content/docs/ai-resources/verify-and-troubleshoot.mdx` at line
1, Update the UDT one-line fix examples in prompting-best-practices.mdx and
prompting-best-practices.zh.mdx to call udt.completeBy(...) instead of
completeBy(...), matching the API form used by Verify & Troubleshoot and the
other UDT documentation.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@packages/docs/content/docs/ai-resources/prompting-best-practices.mdx`:
- Around line 102-107: Update the third bullet in the “Three closing habits”
section to avoid repeating “again” in “ask again or have it re-check,” while
preserving the instruction to verify the package choice rather than relying on
the earlier answer.
- Around line 39-41: Update the introductory paragraph in the
skill-native/web-chat guidance so its bold emphasis closes before the bullet
list begins, matching the structure of the Chinese version. Remove the emphasis
delimiter that currently spans into the second list item and preserve the list
text as normal Markdown.

In `@README.md`:
- Line 63: Update the AI Resources link in the README to use the locale-prefixed
URL https://docs.ckbccc.com/en/docs/ai-resources instead of the unprefixed path.

---

Outside diff comments:
In `@packages/docs/content/docs/ai-resources/verify-and-troubleshoot.mdx`:
- Line 1: Update the UDT one-line fix examples in prompting-best-practices.mdx
and prompting-best-practices.zh.mdx to call udt.completeBy(...) instead of
completeBy(...), matching the API form used by Verify & Troubleshoot and the
other UDT documentation.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 9fe91355-7782-463c-8029-fb66b9cc0fef

📥 Commits

Reviewing files that changed from the base of the PR and between 538e0ab and 9582648.

📒 Files selected for processing (9)
  • README.md
  • packages/docs/content/docs/ai-resources/index.mdx
  • packages/docs/content/docs/ai-resources/index.zh.mdx
  • packages/docs/content/docs/ai-resources/prompting-best-practices.mdx
  • packages/docs/content/docs/ai-resources/prompting-best-practices.zh.mdx
  • packages/docs/content/docs/ai-resources/set-up-ai-tools.mdx
  • packages/docs/content/docs/ai-resources/set-up-ai-tools.zh.mdx
  • packages/docs/content/docs/ai-resources/verify-and-troubleshoot.mdx
  • packages/docs/content/docs/ai-resources/verify-and-troubleshoot.zh.mdx

Comment thread packages/docs/content/docs/ai-resources/prompting-best-practices.mdx Outdated
Comment thread README.md Outdated
- Add  prefix to documentation URLs in README for proper routing
- Fix code examples in prompting best practices (add  prefix to )
- Minor copy edits for clarity and consistency
- Sync Chinese translation with English version
@Hanssen0
Hanssen0 merged commit f6a3db2 into ckb-devrel:master Aug 3, 2026
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants