agentleFS
shawn-sandyshawn-sandy/claude-code/.github/copilot-instructions.md

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,…

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
  1. Distinctive:

    Before implementing ANY feature, breaking change, or architecture shift:

    line 21
  2. Very specific:

    Check existing work: Run openspec list and openspec list --specs

    line 23
  3. Very specific:

    Create proposal: Use openspec to scaffold proposal.md, tasks.md, and spec deltas

    line 26
  4. Very specific:

    Validate: Run openspec validate <change-id> --strict before sharing

    line 28
  5. Distinctive:

    Wait for approval: Do NOT implement until proposal is reviewed

    line 29
  6. Very specific:

    Naming convention: All names use kebab-case (lowercase with hyphens)

    line 51
  7. Very specific:

    Create plugin directory: plugins/new-plugin-name/

    line 148
  8. Very specific:

    Add plugin manifest: .claude-plugin/plugin.json

    line 149
  9. Very specific:

    Create component directories: commands/, skills/, agents/, hooks/

    line 150
  10. Very specific:

    Update marketplace catalog: .claude-plugin/marketplace.json

    line 151
  11. Distinctive:

    Follow OpenSpec process for significant changes

    line 152
  12. Very specific:

    Never edit OPENSPEC managed blocks: - Look for <!-- OPENSPEC:START --> comments

    line 223
  13. Very specific:

    Always validate OpenSpec changes: - Run openspec validate --strict before committing

    line 225
  14. Distinctive:

    Follow naming conventions: - All component names must be kebab-case

    line 227
  15. Distinctive:

    Use path variables: - Never hardcode absolute paths in plugin configs

    line 228
  16. Distinctive:

    Test locally first: - Use local marketplace path before pushing changes

    line 229

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
copilot-instructions.md

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:

  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, tasks.md, and spec deltas
  4. Validate: Run openspec validate <change-id> --strict before sharing
  5. 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

  1. Create plugin directory: plugins/new-plugin-name/
  2. Add plugin manifest: .claude-plugin/plugin.json
  3. Create component directories: commands/, skills/, agents/, hooks/
  4. Update marketplace catalog: .claude-plugin/marketplace.json
  5. 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-tools restriction
  • 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

  1. Never edit OPENSPEC managed blocks - Look for <!-- OPENSPEC:START --> comments
  2. Always validate OpenSpec changes - Run openspec validate --strict before committing
  3. Follow naming conventions - All component names must be kebab-case
  4. Use path variables - Never hardcode absolute paths in plugin configs
  5. Test locally first - Use local marketplace path before pushing changes

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.