agentleFS
gohypergiantgohypergiant/agent-skills/.github/copilot-instructions.md

agent-skills

Copilot instructions24 starsChanged 3 months agoApache-2.0View on GitHub

This repository contains skills and commands that transform AI agents into specialized problem solvers following the Agent Skills format. Critical principle: Progressive disclosure. AGENTS.md has compressed summaries (1 line per rule), references/ have detailed examples. Agents load references only when implementing specific rules to minimize context usage. Purpose: Determines if skill loads. Must answer "when to use", NOT "what it does". Include: triggers ("Use when..."), keywords (file types, action verbs), specific scenarios. Skills minimize context by: 1. SKILL.md description →…

The file

We split this copilot-instructions.md into the rules it gives an agent

9 rules. About 0 are common, 5 are distinctive, and 4 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈5

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 4

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use imperative form ("Execute script", not "The script is executed")

    line 32
  2. Very specific:

    NEVER repeat workflow from SKILL.md

    line 35
  3. Distinctive:

    Assume expertise: Don't explain standard concepts (opening files, common libraries)

    line 95
  4. Distinctive:

    Skip obvious steps: Don't list "Step 1: Open file, Step 2: Edit, Step 3: Save"

    line 99
  5. Very specific:

    Use claude /create:skill [name] command or skill-manager skill directly

    line 121
  6. Distinctive:

    Follow 4-step workflow: Understanding → Planning → Initializing → Editing

    line 122
  7. Very specific:

    Use claude /create:command [name] or command-creator skill

    line 128
  8. Very specific:

    NEVER dump everything in SKILL.md: - Use progressive disclosure with references/ loaded on-demand

    line 143
  9. Distinctive:

    NEVER make skills tech-agnostic when tech-specific: - If skill is for React, say "React" in description

    line 146

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

Agent Skills Repository

This repository contains skills and commands that transform AI agents into specialized problem solvers following the Agent Skills format.

Architecture Overview

Three-Layer Structure

skills/           # Domain expertise packages (js-ts-best-practices, react-best-practices)
├── SKILL.md      # Entry point with YAML frontmatter + workflow
├── AGENTS.md     # Token-efficient rule summaries with reference links
└── references/   # Detailed ❌/✅ examples, loaded on-demand

commands/         # Task specifications for Claude Code CLI
├── create/       # Generation commands (skill, readme, command)
├── audit/        # Code analysis commands (js-ts-docs, js-ts-perf)
└── feature-planning/  # Development workflow commands

documentation/    # Architecture guides for skills and commands

Critical principle: Progressive disclosure. AGENTS.md has compressed summaries (1 line per rule), references/ have detailed examples. Agents load references only when implementing specific rules to minimize context usage.

File Structure Conventions

Skills (User-Facing Knowledge Packages)

  • SKILL.md: Required entry point with YAML frontmatter
    • description field determines activation (MUST include "Use when..." with triggers, keywords)
    • Body contains workflow/procedures, kept under 500 lines
    • Use imperative form ("Execute script", not "The script is executed")
  • AGENTS.md: Optional, for complex skills with many rules
    • Rule summaries with links to references/ (e.g., "Use kebab-case, append qualifiers. View examples")
    • NEVER repeat workflow from SKILL.md
    • Include "Critical Anti-Patterns" section at top
  • references/: Detailed examples in ❌/✅ format
    • Each file is self-contained
    • Loaded on-demand when agent implements specific rule
  • scripts/: Reusable automation for deterministic operations
  • assets/: Templates, boilerplate, sample data

Commands (Claude Code CLI Specifications)

  • YAML frontmatter: description, argument-hint, skills (optional)
  • Sections: Arguments, Workflow, Statistics Reporting, Examples
  • Workflow organized by phases with validation checkpoints
  • Commands integrate with skills via skills: field

Key Patterns

1. Skill Description Field is Critical for Activation

Purpose: Determines if skill loads. Must answer "when to use", NOT "what it does".

# ❌ Wrong: describes workflow (agent may follow description instead of reading skill)
description: Code review between tasks, dispatches subagent per task

# ✅ Correct: triggering conditions only
description: Use when executing implementation plans with independent tasks in current session

Include: triggers ("Use when..."), keywords (file types, action verbs), specific scenarios.

2. Progressive Disclosure Throughout

Skills minimize context by:

  1. SKILL.md description → triggers activation
  2. SKILL.md body → core workflow only
  3. AGENTS.md → compressed rule summaries
  4. references/ → detailed examples loaded on-demand

Commands reference skills instead of duplicating knowledge:

skills: js-ts-best-practices, vitest-best-practices

3. Token-Efficient AGENTS.md Format

### 1.1 Rule Name
One-line summary with actionable guidance.
[View detailed examples](references/rule-name.md)

## Critical Anti-Patterns (at top)
- **NEVER use `any` type** - Use `unknown` or generics instead
- **NEVER chain .filter().map()** - Use single `reduce` pass

Cross-reference other skills rather than repeating: "REQUIRED: Use [skill-name] for workflow."

4. Writing for Agents, Not Humans

  • Assume expertise: Don't explain standard concepts (opening files, common libraries)
  • Be specific: "NEVER use any" not "be careful with types"
  • Show consequences: "degrades V8 optimization" not "bad for performance"
  • Use imperative: "Execute script" not "The script can be executed"
  • Skip obvious steps: Don't list "Step 1: Open file, Step 2: Edit, Step 3: Save"

5. Example Format Standards

**❌ Incorrect: [reason]**
```ts
// bad code with comment explaining why

✅ Correct: [benefit]

// good code with comment explaining why

Include context in examples (3+ lines before/after target change) so agents see real usage.

## Development Workflows

### Creating a New Skill

1. Use `claude /create:skill [name]` command or skill-manager skill directly
2. Follow 4-step workflow: Understanding → Planning → Initializing → Editing
3. Validate description answers "WHAT, WHEN, KEYWORDS"
4. Choose location: `.claude/skills/` (project) or `~/.claude/skills/` (global)

### Creating a New Command

1. Use `claude /create:command [name]` or command-creator skill
2. Identify skill dependencies
3. Structure workflow with phases and validation checkpoints
4. Save to `.claude/commands/` (project) or `~/.claude/commands/` (global)

### Editing Skills/Commands

- Skills: Focus on token efficiency and progressive disclosure
- References: Self-contained with complete ❌/✅ examples
- Commands: Clear phase structure with statistics reporting

## Critical Anti-Patterns

- **NEVER write tutorials** - Assume agent knows standard concepts, focus on expert-only knowledge
- **NEVER put workflow in description** - Description is for triggering only, not summarizing process
- **NEVER dump everything in SKILL.md** - Use progressive disclosure with references/ loaded on-demand
- **NEVER use generic warnings** - "Be careful" is useless; provide specific anti-patterns with reasons
- **NEVER explain standard operations** - Assume agent can read files, write code; focus on non-obvious decisions
- **NEVER make skills tech-agnostic when tech-specific** - If skill is for React, say "React" in description

## Testing and Validation

Skills and commands are tested by usage. Key validation points:

1. **Description triggers correctly** - Skills activate in relevant contexts
2. **References load on-demand** - Agents cite specific files when implementing rules
3. **Commands execute phases** - Validation checkpoints catch errors early
4. **Scripts are reusable** - Deterministic operations don't need modification

## File Naming

- Skills: `kebab-case` directories, `UPPERCASE.md` for main files, `lowercase.md` for references
- Commands: `kebab-case.md` in categorized directories (create/, audit/, feature-planning/)
- Scripts: `kebab-case.sh` or `kebab-case.py`
- Assets: Descriptive names, match output format

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.