Skip to content

feat: implement multi-skill architecture for AI coding assistants and add AI Resources documentation#443

Open
yixyxiu wants to merge 9 commits into
ckb-devrel:masterfrom
CKBFansDAO:feat/ccc-skills
Open

feat: implement multi-skill architecture for AI coding assistants and add AI Resources documentation#443
yixyxiu wants to merge 9 commits into
ckb-devrel:masterfrom
CKBFansDAO:feat/ccc-skills

Conversation

@yixyxiu

@yixyxiu yixyxiu commented Jul 15, 2026

Copy link
Copy Markdown
Contributor

This PR introduces a modular multi-skill architecture for CCC's AI coding assistant support, replacing the previous monolithic skill.md with a hub-and-spoke structure. It also adds comprehensive AI Resources documentation to help developers configure and use their AI tools effectively with CCC.

Changes

Multi-Skill Architecture

  • Hub skill: ckb-ccc-fundamentals - Foundational CKB knowledge (Cell model, package selection, address/amount handling, KnownScript enum, API signature lookup)
  • Spoke skills:
    • ckb-ccc-signer-setup - Wallet connection and signer creation
    • ckb-ccc-transactions - Transaction composition and sending
    • ckb-ccc-udt - UDT/xUDT token operations
    • ckb-ccc-spore - Spore protocol NFT/DOB operations
    • ckb-ccc-playground - CCC Playground usage
    • ckb-ccc-examples-finder - Locating existing example code

AI Resources Documentation

Added a new documentation section with 4 pages (English and Chinese):

  • index: Overview and navigation cards
  • set-up-ai-tools: Installation via npx skills add ckb-devrel/ccc, keep-skills-up-to-date workflow
  • prompting-best-practices: Skill-native vs web chat prompt templates
    Note: The current prompt templates include detailed constraints to ensure accuracy. We will be conducting deep testing to find the optimal balance between prompt conciseness and output accuracy, and will iterate on these templates based on real-world usage.
  • verify-and-troubleshoot: Canary questions, troubleshooting with npx skills check/update

Documentation Infrastructure

  • Removed 475-line monolithic packages/docs/public/skill.md
  • Added /skill.md route serving a Markdown table with skill dependencies and installation instructions
  • Updated llms.txt route to reference the new skill structure

Examples

  • Added XudtSusIssuer class for xUDT Single-Use-Seal pattern issuance
  • Encapsulates 3-step flow: seal cell → owner cell → mint xUDT + UniqueType
  • Includes progress callback for transaction tracking

yixyxiu added 5 commits July 15, 2026 17:10
Add a set of Agent Skills (agentskills.io spec) that teach AI tools
how to build on CKB with the CCC SDK:

- Hub skill: ckb-ccc-fundamentals (Cell model, package selection,
  address/amount handling, hallucination guard)
- Spoke skills: ckb-ccc-signer-setup, ckb-ccc-transactions,
  ckb-ccc-udt, ckb-ccc-spore, ckb-ccc-playground,
  ckb-ccc-examples-finder

Installable via `npx skills add ckb-devrel/ccc`. Includes a maintenance
README documenting version bump discipline and update workflow.
- Remove packages/docs/public/skill.md (475 lines) - the old monolithic skill file
- Add AI Resources section metadata (meta.json and meta.zh.json)
- Update llms.txt route to reference skill.md as "Agent skills index" and add AI Resources link
- Refactor playground guide Example 2 from UDT token issuance to Spore creation (both EN and ZH)
- Update verify-llm.mjs script references

This is part of the multi-skill architecture migration where the single skill.md is replaced by a hub skill (ckb-ccc-fundamentals) plus spoke skills for each task domain.
- Add /skill.md route (app/skill.md/route.ts) with hub/spoke skill table, dependencies, and npx skills CLI installation
- Add AI Resources section with 4 pages (EN and ZH):
  - index: overview and navigation cards
  - set-up-ai-tools: npx skills add installation, keep-skills-up-to-date section
  - prompting-best-practices: skill-native vs web chat prompt templates, 7 task categories
  - verify-and-troubleshoot: canary questions, npx skills check/update troubleshooting
- Update docs meta.json/meta.zh.json to include AI Resources section
- Update introduction.zh.mdx to reference new skill.md endpoint

This completes the multi-skill architecture migration by providing the new modular skill structure and comprehensive AI tooling documentation.
- Add XudtSusIssuer class that encapsulates the 3-step SUS flow:
  1. Create seal cell (reserved until mint)
  2. Create owner cell locked with SingleUseLock bound to seal
  3. Consume seal + owner to mint xUDT + UniqueType metadata cells
- Add issueXudtWithSUS() convenience function for playground usage
- Includes progress callback for tracking each transaction step
- Handles TypeId calculation for UniqueType after inputs are finalized
- Update package selection table to show import statement instead of Web Component tag
- Clarifies that @ckb-ccc/connector uses standard import pattern like other packages
@netlify

netlify Bot commented Jul 15, 2026

Copy link
Copy Markdown

Deploy Preview for docsccc ready!

Name Link
🔨 Latest commit c0955f2
🔍 Latest deploy log https://app.netlify.com/projects/docsccc/deploys/6a58257c22446c0008430b2a
😎 Deploy Preview https://deploy-preview-443--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: 75 (🔴 down 13 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.

@netlify

netlify Bot commented Jul 15, 2026

Copy link
Copy Markdown

Deploy Preview for liveccc ready!

Name Link
🔨 Latest commit c0955f2
🔍 Latest deploy log https://app.netlify.com/projects/liveccc/deploys/6a58257ccd0e3400089ff9d7
😎 Deploy Preview https://deploy-preview-443--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: 31 (🔴 down 7 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.

@changeset-bot

changeset-bot Bot commented Jul 15, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: c0955f2

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

@netlify

netlify Bot commented Jul 15, 2026

Copy link
Copy Markdown

Deploy Preview for appccc ready!

Name Link
🔨 Latest commit c0955f2
🔍 Latest deploy log https://app.netlify.com/projects/appccc/deploys/6a58257c11448000080aad00
😎 Deploy Preview https://deploy-preview-443--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: 68 (🔴 down 17 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.

@netlify

netlify Bot commented Jul 15, 2026

Copy link
Copy Markdown

Deploy Preview for apiccc ready!

Name Link
🔨 Latest commit c0955f2
🔍 Latest deploy log https://app.netlify.com/projects/apiccc/deploys/6a58257cd0b1c20008ab39e5
😎 Deploy Preview https://deploy-preview-443--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: 87 (no change 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.

Copilot AI 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.

Pull request overview

This PR replaces the previous single, monolithic CCC agent skill doc with a hub-and-spoke “multi-skill” layout under skills/, adds a /skill.md index route that lists skill dependencies and raw URLs, and introduces a new “AI Resources” docs section (EN + ZH) to help developers install, prompt, and verify their AI tooling against CCC docs.

Changes:

  • Added a modular Agent Skills set (ckb-ccc-fundamentals hub + spoke skills for signer setup, transactions, UDT, Spore, playground, and example-finding), plus maintenance guidance in skills/README.md.
  • Added an on-site skills index (/skill.md) and updated docs verification + llms.txt to reference the new structure.
  • Added “AI Resources” documentation pages (setup, prompting, troubleshooting) in both English and Chinese, and updated docs navigation to include them.

Reviewed changes

Copilot reviewed 29 out of 29 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
skills/README.md Maintenance guidance for updating skills and versioning.
skills/ckb-ccc-fundamentals/SKILL.md Hub skill covering CKB/CCC fundamentals and doc/API-grounding workflow.
skills/ckb-ccc-signer-setup/SKILL.md Spoke skill for wallet connection + signer creation patterns.
skills/ckb-ccc-transactions/SKILL.md Spoke skill for CCC transaction composition pipeline and chain querying.
skills/ckb-ccc-udt/SKILL.md Spoke skill for UDT/xUDT issuance/transfer patterns (SUS issuance example).
skills/ckb-ccc-spore/SKILL.md Spoke skill for Spore/DOB creation/transfer/melt and DOB conventions.
skills/ckb-ccc-playground/SKILL.md Spoke skill for CCC Playground usage, sharing, and contribution workflow.
skills/ckb-ccc-examples-finder/SKILL.md Spoke skill for locating existing example code by category.
packages/examples/src/issueUdtSus.ts New runnable example implementing xUDT SUS issuance flow with progress callback.
packages/docs/scripts/verify-llm.mjs Updates verification checks to validate the new /skill.md route content.
packages/docs/public/skill.md Removes the old monolithic skill document.
packages/docs/app/skill.md/route.ts Adds /skill.md route that renders the skills index table + summaries.
packages/docs/app/llms.txt/route.ts Updates llms notes and adds AI Resources to the index.
packages/docs/content/docs/meta.json Adds AI Resources pages to the English docs navigation.
packages/docs/content/docs/meta.zh.json Adds AI Resources pages to the Chinese docs navigation.
packages/docs/content/docs/getting-started/introduction.mdx Adds AI Resources entry card on the intro page.
packages/docs/content/docs/getting-started/introduction.zh.mdx Adds AI Resources entry card on the intro page (ZH).
packages/docs/content/docs/guides/playground.mdx Updates example #2 to “Create a Spore” (doc snippet).
packages/docs/content/docs/guides/playground.zh.mdx Updates example #2 to “Create a Spore” (doc snippet, ZH).
packages/docs/content/docs/ai-resources/index.mdx New AI Resources section landing page (EN).
packages/docs/content/docs/ai-resources/index.zh.mdx New AI Resources section landing page (ZH).
packages/docs/content/docs/ai-resources/set-up-ai-tools.mdx New page: installing CCC skills into AI tools (EN).
packages/docs/content/docs/ai-resources/set-up-ai-tools.zh.mdx New page: installing CCC skills into AI tools (ZH).
packages/docs/content/docs/ai-resources/prompting-best-practices.mdx New page: prompt templates and grounding workflow (EN).
packages/docs/content/docs/ai-resources/prompting-best-practices.zh.mdx New page: prompt templates and grounding workflow (ZH).
packages/docs/content/docs/ai-resources/verify-and-troubleshoot.mdx New page: canary questions + troubleshooting flow (EN).
packages/docs/content/docs/ai-resources/verify-and-troubleshoot.zh.mdx New page: canary questions + troubleshooting flow (ZH).
packages/docs/content/docs/ai-resources/meta.json New section metadata for AI Resources (EN).
packages/docs/content/docs/ai-resources/meta.zh.json New section metadata for AI Resources (ZH).

Comment thread skills/ckb-ccc-udt/SKILL.md
Comment thread skills/ckb-ccc-playground/SKILL.md Outdated
Comment thread packages/docs/content/docs/guides/playground.mdx
Comment thread packages/docs/content/docs/guides/playground.zh.mdx

Copilot AI 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.

Pull request overview

Copilot reviewed 29 out of 29 changed files in this pull request and generated 14 comments.

Comment thread packages/docs/content/docs/ai-resources/index.mdx
Comment thread packages/docs/content/docs/ai-resources/index.mdx
Comment thread packages/docs/content/docs/ai-resources/index.mdx
Comment thread packages/docs/content/docs/ai-resources/index.mdx
Comment thread packages/docs/content/docs/ai-resources/index.mdx
Comment thread packages/docs/content/docs/ai-resources/index.zh.mdx
Comment thread packages/docs/content/docs/guides/playground.mdx
Comment thread packages/docs/content/docs/guides/playground.zh.mdx
Comment thread packages/docs/content/docs/guides/playground.zh.mdx Outdated
Comment thread packages/docs/app/skill.md/route.ts
- Add `--all` flag to npx skills add command in skill.md route for non-interactive installation
- Add console.log to display Spore ID after creation in playground example (both EN and ZH)
- Fix Chinese playground example description from "发行代币" to "创建 Spore" for accuracy

Copilot AI 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.

Pull request overview

Copilot reviewed 29 out of 29 changed files in this pull request and generated 2 comments.

Comment thread skills/README.md Outdated
Comment thread packages/examples/src/issueUdtSus.ts
- Change `dependsOn` to `depends-on` in skills/README.md to match the actual YAML frontmatter field name used in SKILL.md files
- Add descriptive comment to issueUdtSus.ts example
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