Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@ivan-magda
Copy link
Owner

Summary

  • Syncs all plugin-development plugin documentation with the latest official Anthropic Claude Code documentation
  • Adds missing frontmatter fields, event types, environment variables, and configuration options
  • Fixes incorrect documentation (e.g., agents path rule)
  • Removes deprecated capabilities field from agent templates

Changes by Area

Agents Documentation

  • Added missing frontmatter fields: name, tools, model, permissionMode, skills
  • Documented model options: sonnet, opus, haiku, inherit
  • Documented permission modes: default, acceptEdits, bypassPermissions, plan
  • Removed deprecated capabilities field (not in official docs)

Hooks Schema

  • Added missing events: Notification, PreCompact, PermissionRequest
  • Added CLAUDE_ENV_FILE environment variable
  • Documented hook types: command, prompt, agent
  • Expanded JSON output format with hookSpecificOutput structure

Plugin Manifest Schema

  • Added missing fields: lspServers, outputStyles
  • Fixed agents path rule to allow both directory and array formats
  • Added LSP Server Configuration section with examples

Skills Documentation

  • Added model frontmatter field
  • Fixed name validation: lowercase letters, numbers, and hyphens
  • Added reserved word restrictions (anthropic, claude)
  • Added 500 lines max guidance for SKILL.md

Commands Documentation

  • Added model and disable-model-invocation frontmatter fields
  • Documented @path/to/file syntax for including file contents
  • Added SlashCommand tool section with character budget (15,000 chars)

Marketplace Schema

  • Added lspServers component configuration
  • Added GitHub source ref and path optional fields
  • Added strictKnownMarketplaces enterprise setting
  • Added reserved marketplace names list

Test plan

  • Verify documentation renders correctly in markdown viewers
  • Cross-reference each schema file against official Anthropic docs
  • Test plugin creation using updated templates

🤖 Generated with Claude Code

ivan-magda and others added 6 commits December 28, 2025 15:49
- Add missing frontmatter fields: name, tools, model, permissionMode, skills
- Document model options: sonnet, opus, haiku, inherit
- Document permission modes: default, acceptEdits, bypassPermissions, plan
- Remove deprecated 'capabilities' field (not in official docs)
- Update agent-template.md with complete frontmatter reference
- Update plugin-reviewer.md with official field structure
- Update add-agent.md command with comprehensive field documentation

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <[email protected]>
- Add missing event types: Notification, PreCompact, PermissionRequest
- Add CLAUDE_ENV_FILE environment variable for SessionStart
- Document hook types: command, prompt, agent
- Expand JSON output format with hookSpecificOutput structure
- Add MCP tool matching pattern: mcp__<server>__<tool>
- Document decision field for PostToolUse/Stop/SubagentStop

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <[email protected]>
- Add missing component fields: lspServers, outputStyles
- Fix agents path rule to allow both directory and array formats
- Add hook types documentation: command, prompt, agent
- Expand hook events list with all 10 official events
- Add LSP Server Configuration section with examples
- Add hook matchers section with MCP tool patterns
- Remove incorrect 'Common Mistakes' about agents directory paths

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <[email protected]>
- Add model frontmatter field for specifying Claude model
- Fix name validation: lowercase letters, numbers, and hyphens
- Add reserved word restrictions: cannot contain 'anthropic' or 'claude'
- Add XML tag restrictions for name and description
- Add SKILL.md size guidance: 500 lines max for optimal performance
- Update allowed-tools to document auto-approval behavior

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <[email protected]>
- Add model frontmatter field for specifying different model
- Add disable-model-invocation field to prevent SlashCommand tool access
- Document @path/to/file syntax for including file contents
- Add pipe syntax for argument-hint with multiple patterns
- Add SlashCommand tool section with character budget (15,000 chars)
- Document SLASH_COMMAND_TOOL_CHAR_BUDGET environment variable

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <[email protected]>
…ttings

- Add lspServers to component configuration fields
- Document GitHub source optional fields: ref (branch/tag) and path (subdirectory)
- Add Enterprise Marketplace Restrictions section with strictKnownMarketplaces
- Add Reserved Marketplace Names section with blocked names list
- Remove undocumented simple URL string formats
- Update advanced plugin entry example with lspServers configuration

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <[email protected]>
Copilot AI review requested due to automatic review settings December 28, 2025 12:52
@ivan-magda ivan-magda self-assigned this Dec 28, 2025
Copy link

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 pull request synchronizes the plugin-development documentation with the latest official Anthropic Claude Code documentation. It comprehensively updates schemas, templates, and guides to reflect current best practices and newly available features.

Key changes:

  • Updates agent and skill templates to include proper frontmatter fields (name, tools, model, permissionMode, skills) and removes the deprecated capabilities field
  • Expands hooks schema with missing event types (Notification, PreCompact, PermissionRequest), adds CLAUDE_ENV_FILE environment variable, and documents hook-specific JSON output formats
  • Adds LSP server configuration documentation and fixes agents path rules to support both directory and array formats

Reviewed changes

Copilot reviewed 9 out of 9 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
plugins/plugin-development/skills/plugin-authoring/templates/skill-template.md Adds model field, updates allowed-tools description, includes XML tag restrictions, adds 500-line best practice guidance
plugins/plugin-development/skills/plugin-authoring/templates/agent-template.md Removes deprecated capabilities field, adds required name field and optional tools/model/permissionMode/skills fields with comprehensive documentation
plugins/plugin-development/skills/plugin-authoring/schemas/plugin-manifest.md Fixes agents path rule to support directory format, adds lspServers and outputStyles fields, expands hook types and events documentation
plugins/plugin-development/skills/plugin-authoring/schemas/marketplace-schema.md Adds lspServers component config, GitHub source ref/path fields, strictKnownMarketplaces enterprise setting, and reserved marketplace names
plugins/plugin-development/skills/plugin-authoring/schemas/hooks-schema.md Adds three missing event types, documents hook types (command/prompt/agent), adds CLAUDE_ENV_FILE for SessionStart, expands JSON output format with hookSpecificOutput structure
plugins/plugin-development/skills/plugin-authoring/SKILL.md Updates skill naming rules to include XML tag restrictions and reserved word validation, adds model field documentation
plugins/plugin-development/commands/add-command.md Adds model and disable-model-invocation frontmatter fields, documents @path/to/file syntax, adds comprehensive SlashCommand tool section with 15,000 character budget
plugins/plugin-development/commands/add-agent.md Updates agent template to include name field and replace capabilities with tools/model/permissionMode/skills fields, adds permission modes and model options tables
plugins/plugin-development/agents/plugin-reviewer.md Removes deprecated capabilities field, adds required name/tools/model/permissionMode frontmatter to align with new schema

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

- Shorten verbose agent template comment block
- Format skills name validation as bulleted list for readability
- Clarify model format: commands use full IDs, agents use short forms
- Add idle_prompt timing note (60s is system default, not configurable)
- Add migration note for marketplace path field
- Fix LSP config: use extensionToLanguage instead of languages

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <[email protected]>
@ivan-magda ivan-magda merged commit 0d6b9f8 into main Dec 28, 2025
4 checks passed
@ivan-magda ivan-magda deleted the docs/sync-with-anthropic-docs branch December 28, 2025 18:08
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