claude-code
Copilot instructions1 starsChanged 12 months agoMITView on GitHub
This is a multi-plugin marketplace for Claude Code, distributing plugins with commands, skills, agents, hooks, and MCP integrations. The architecture uses: - Marketplace catalog (.claude-plugin/marketplace.json) listing all plugins - Plugin manifests (plugins/*/. claude-plugin/plugin.json) for individual plugins - Auto-discovery of components in standardized directories Before implementing ANY feature, breaking change, or architecture shift: 1. Check existing work: Run openspec list and openspec list --specs 2. Read context: Review openspec/AGENTS.md for the complete workflow 3. Create proposal: Use openspec to scaffold proposal.md,…
In this repository3 other files it gives its agents.
- AGENTS.mdAGENTS.md
- openspec/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
The file
Show its rules and text
We split this copilot-instructions.md into the rules it gives an agent
16 rules. About 0 are common, 6 are distinctive, and 10 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈6
Distinctive · estimate
This author's own choices. Worth a look.
10
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 21
Before implementing ANY feature, breaking change, or architecture shift:
- Very specific: line 23
Check existing work: Run openspec list and openspec list --specs
- Very specific: line 26
Create proposal: Use openspec to scaffold proposal.md, tasks.md, and spec deltas
- Very specific: line 28
Validate: Run openspec validate <change-id> --strict before sharing
- Distinctive: line 29
Wait for approval: Do NOT implement until proposal is reviewed
- Very specific: line 51
Naming convention: All names use kebab-case (lowercase with hyphens)
- Very specific: line 148
Create plugin directory: plugins/new-plugin-name/
- Very specific: line 149
Add plugin manifest: .claude-plugin/plugin.json
- Very specific: line 150
Create component directories: commands/, skills/, agents/, hooks/
- Very specific: line 151
Update marketplace catalog: .claude-plugin/marketplace.json
- Distinctive: line 152
Follow OpenSpec process for significant changes
- Very specific: line 223
Never edit OPENSPEC managed blocks: - Look for <!-- OPENSPEC:START --> comments
- Very specific: line 225
Always validate OpenSpec changes: - Run openspec validate --strict before committing
- Distinctive: line 227
Follow naming conventions: - All component names must be kebab-case
- Distinctive: line 228
Use path variables: - Never hardcode absolute paths in plugin configs
- Distinctive: line 229
Test locally first: - Use local marketplace path before pushing changes
≈ “Common” is an estimate: at least 1 in 5 of the 1,644 Copilot instructions files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Claude Code Marketplace - AI Agent Instructions
<!-- Generated by Copilot -->Project Overview
This is a multi-plugin marketplace for Claude Code, distributing plugins with commands, skills, agents, hooks, and MCP integrations. The architecture uses:
- Marketplace catalog (
.claude-plugin/marketplace.json) listing all plugins - Plugin manifests (
plugins/*/. claude-plugin/plugin.json) for individual plugins - Auto-discovery of components in standardized directories
Critical Architecture Patterns
OpenSpec Workflow (MUST FOLLOW)
Before implementing ANY feature, breaking change, or architecture shift:
- Check existing work: Run
openspec listandopenspec list --specs - Read context: Review openspec/AGENTS.md for the complete workflow
- Create proposal: Use
openspecto scaffoldproposal.md,tasks.md, and spec deltas - Validate: Run
openspec validate <change-id> --strictbefore sharing - Wait for approval: Do NOT implement until proposal is reviewed
Skip proposals only for: bug fixes, typos, comments, dependency updates, config tweaks.
Triggers requiring proposals (examples from openspec/AGENTS.md):
- Words like "proposal", "spec", "change", "plan" + "create", "help", "make"
- New features, breaking changes, architecture changes, performance optimizations
Component Discovery & Naming
Standard directories (auto-discovered by Claude Code):
commands/*.md→ Slash commands (filename = command name)skills/*/SKILL.md→ Autonomous skills (directory = skill name)agents/*.md→ Specialized agents (filename = agent name)hooks/hooks.json→ Event-driven automation.mcp.json→ Model Context Protocol servers
Naming convention: All names use kebab-case (lowercase with hyphens)
CRITICAL: Component directories MUST be at plugin root, NOT inside
.claude-plugin/
Path Management
Always use plugin-relative paths in hooks and MCP configurations:
// hooks.json
"command": "${CLAUDE_PLUGIN_ROOT}/hooks/scripts/example-hook.sh"
// .mcp.json
"command": "node",
"args": ["${CLAUDE_PLUGIN_ROOT}/server.js"]Other path variables: ${CLAUDE_PROJECT_DIR}, ${VAR:-default}
Component Types & When to Use Each
Commands (User-Invoked)
Use for: Builds, deployments, git operations, user-triggered workflows
Structure: commands/command-name.md with YAML frontmatter
---
description: Brief command description (1-2 sentences)
argument-hint: [optional-args]
allowed-tools: Bash(git:*), Read, Write # Restrict tools for security
model: claude-3-5-sonnet-20241022
---Skills (Autonomously Triggered)
Use for: Capabilities that enhance Claude without user invocation
Structure: skills/skill-name/SKILL.md with frontmatter
---
name: skill-name
description: What it does AND when to use it (BOTH required!)
allowed-tools: Read, Grep, Glob
---CRITICAL: description must include "when to use" triggers for Claude to
know when to invoke
Agents (Specialized Subagents)
Use for: Complex multi-step tasks requiring isolation and domain expertise
Structure: agents/agent-name.md with frontmatter + system prompt
---
name: agent-name
description: Purpose and when Claude should use this agent
tools: Read, Write, Bash # Restrict tools (omit for all)
model: inherit # inherit, sonnet, opus, haiku
permissionMode: auto # auto, ask, block
---Hooks (Event-Driven)
Use for: Validation, logging, enforcing best practices
Types: prompt (inject instructions) or command (execute scripts)
Events: PreToolUse, PostToolUse, SessionStart, UserPromptSubmit,
etc.
Example from plugins/starter-plugin/hooks/hooks.json:
{
"PreToolUse": [
{
"matcher": "Write|Edit",
"hooks": [
{
"type": "prompt",
"prompt": "Read existing content before editing"
}
]
}
]
}Development Workflow
Adding New Plugins
- Create plugin directory:
plugins/new-plugin-name/ - Add plugin manifest:
.claude-plugin/plugin.json - Create component directories:
commands/,skills/,agents/,hooks/ - Update marketplace catalog:
.claude-plugin/marketplace.json - Follow OpenSpec process for significant changes
Testing Locally
# Add marketplace from local filesystem
/plugin marketplace add /path/to/claude-code
# Install and test plugins
/plugin install starter-plugin@claude-code-marketplace
/example "test message"Required Plugin Manifest Fields
From plugins/starter-plugin/.claude-plugin/plugin.json:
{
"name": "plugin-name",
"version": "1.0.0",
"description": "Clear description",
"author": { "name": "Name", "email": "email@example.com" },
"homepage": "https://github.com/user/repo",
"repository": "https://github.com/user/repo",
"license": "MIT",
"keywords": ["relevant", "search", "terms"]
}Key Files & References
- AGENTS.md - OpenSpec managed instructions (DO NOT EDIT)
- openspec/AGENTS.md - Complete OpenSpec workflow and CLI commands
- CLAUDE.md - Detailed component architecture and patterns
- CONTRIBUTING.md - Full contribution guidelines with examples
- README.md - User-facing documentation
- .claude-plugin/marketplace.json - Marketplace catalog
Common Patterns from starter-plugin
Command example: plugins/starter-plugin/commands/example.md
- Shows frontmatter structure with
allowed-toolsrestriction - Documents when to use commands vs skills vs agents
Skill example: plugins/starter-plugin/skills/example-skill/SKILL.md
- Demonstrates critical "when to use" description pattern
- Shows supporting files in skill directory
Agent example: plugins/starter-plugin/agents/example-agent.md
- System prompt structure for specialized tasks
- Tool restriction and permission configuration
Hooks example: plugins/starter-plugin/hooks/hooks.json
- Event-driven validation patterns
- Path variable usage with
${CLAUDE_PLUGIN_ROOT}
Critical Constraints
- Never edit OPENSPEC managed blocks - Look for
<!-- OPENSPEC:START -->comments - Always validate OpenSpec changes - Run
openspec validate --strictbefore committing - Follow naming conventions - All component names must be kebab-case
- Use path variables - Never hardcode absolute paths in plugin configs
- Test locally first - Use local marketplace path before pushing changes
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

