Skip to content

docs: fix inaccuracies in skills.md#556

Merged
patniko merged 1 commit intomainfrom
fix/skills-docs-accuracy
Feb 24, 2026
Merged

docs: fix inaccuracies in skills.md#556
patniko merged 1 commit intomainfrom
fix/skills-docs-accuracy

Conversation

@patniko
Copy link
Contributor

@patniko patniko commented Feb 24, 2026

Summary

The docs/guides/skills.md document contained significant inaccuracies — it described a skill.json manifest, prompts/ directory, and tools/ directory that don't exist in the actual implementation. Skills are defined via SKILL.md files, not skill.json.

Changes

  • Replace skill.json with SKILL.md format — Document the actual YAML frontmatter + markdown format used by all E2E tests and scenario samples
  • Fix directory structure — Show the real skill-name/SKILL.md layout instead of fabricated skill.json/prompts//tools/ tree
  • Add onPermissionRequest to all code examples — Required by the SDK; previous examples would throw
  • Remove fabricated concepts — No separate prompt files or tool definition directories
  • Fix troubleshooting & best practices — Reference SKILL.md instead of skill.json
  • Remove speculative claims — Removed unverified skill conflict precedence behavior

Validation

  • npm run extract && npm run validate:ts passes (all 174 code blocks valid across all 4 languages)

Replace fabricated skill.json references with actual SKILL.md format used
by the SDK. The previous doc described a skill.json manifest, prompts/
directory, and tools/ directory that don't exist in the implementation.

Changes:
- Replace skill.json with SKILL.md format (YAML frontmatter + markdown)
- Fix directory structure to match actual layout (skill-name/SKILL.md)
- Add onPermissionRequest to all code examples (required by SDK)
- Remove fabricated prompts/ and tools/ directory concepts
- Fix troubleshooting and best practices to reference SKILL.md
- Remove speculative skill conflict precedence claims

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@patniko patniko requested a review from a team as a code owner February 24, 2026 17:33
Copilot AI review requested due to automatic review settings February 24, 2026 17:33
@patniko patniko merged commit bce4de0 into main Feb 24, 2026
16 checks passed
@patniko patniko deleted the fix/skills-docs-accuracy branch February 24, 2026 17:34
Copy link
Contributor

Copilot AI left a comment

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 fixes significant documentation inaccuracies in the Skills guide. The previous documentation incorrectly described skills as using a skill.json manifest with separate prompts/ and tools/ directories, when skills are actually defined via SKILL.md markdown files with optional YAML frontmatter. The PR corrects this fundamental misunderstanding and adds required onPermissionRequest handlers that were missing from all code examples.

Changes:

  • Replaced fabricated skill.json format with actual SKILL.md format (markdown with optional YAML frontmatter)
  • Corrected directory structure documentation to show the real skill-name/SKILL.md layout
  • Added required onPermissionRequest handlers to all complete code examples
  • Removed unverified claims about skill conflict precedence behavior
  • Updated troubleshooting section to reference SKILL.md instead of skill.json

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