agentleFS
girishrgirishr/SpecPilot/.github/copilot-instructions.md

SpecPilot

Copilot instructions39 starsChanged 59 days agoMITView on GitHub

This file is automatically read by GitHub Copilot, Cursor, and other AI tools on every request. Keep this file short — only critical mandates. Full context is in .specs/project/project.yaml. If you lose context mid-session, read .specs/project/project.yaml to restore full project context. For a ready-made re-anchor prompt, see .specs/development/prompts.md → ## Re-Anchor Prompt.

The file

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

7 rules. About 0 are common, 5 are distinctive, and 2 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.

  • 2

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Spec-First: Update .specs/ before writing code.

    line 30
  2. Distinctive:

    Only then: minimum code that work.

    line 52
  3. Distinctive:

    Never cut: validation, error handling, security, explicit requirement.

    line 53
  4. Distinctive:

    No abstraction, interface, factory, or pattern unless asked.

    line 57
  5. Distinctive:

    No scaffold "for later". Later scaffold itself.

    line 58
  6. Distinctive:

    Read before write. Never reference code you haven't read.

    line 63
  7. Very specific:

    If you lose context mid-session, read .specs/project/project.yaml to restore full project context.

    line 67

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

AI Coding Instructions — SpecPilot

This file is automatically read by GitHub Copilot, Cursor, and other AI tools on every request. Keep this file short — only critical mandates. Full context is in .specs/project/project.yaml.

Project

  • Name: SpecPilot
  • Stack: TypeScript / Node.js / Commander.js
  • Specs location: .specs/

🔴 Critical Mandates — Never violate, no exceptions

  1. NEVER commit code to git unless the developer explicitly asks. Always ask first.
  2. NEVER push to git unless the developer explicitly asks. Always ask first.
  3. NEVER deploy, publish, or release the project unless the developer explicitly asks. Always ask first.
  4. NEVER modify the .specs/ folder structure, subfolder names, or file names. Only update file contents.
  5. ALWAYS update affected .specs/ files after every code change — without being asked:
    • Structural changes → architecture/architecture.md
    • Feature changes → project/requirements.md
    • Test changes → quality/tests.md
    • Task status → planning/tasks.md
    • Completed work → CHANGELOG.md
  6. NEVER describe, quote, or reference file contents without first reading the file via a tool call in this session. If you have not read the file yet, say so explicitly before answering.
  7. NEVER implement, write code, or make file changes unless the developer explicitly asks. If the next step seems obvious, ask first — do not assume.
  8. SPEC-FIRST review gate: Before touching any code or non-spec files, read all relevant .specs/ files, update all affected spec files first, present a Spec Report summarizing what changed, which files were affected, and what the specs now say, then wait for the developer's explicit yes, proceed before writing code. If the developer declines, revert the spec changes and stop.

🟡 Process Mandates

  • Spec-First: Update .specs/ before writing code.
  • Log all AI interactions in .specs/development/prompts.md with timestamps.
  • Document decisions in .specs/development/context.md.

Context — read on demand by task type

Task typeRead
Session start.specs/project/project.yaml
Feature / bug+ project/requirements.md, planning/tasks.md
Architecture+ architecture/architecture.md
Tests+ quality/tests.md
Security+ security/threat-model.md, security/security-decisions.md
Planning+ planning/tasks.md, planning/roadmap.md

Code Philosophy — Write Only What Needed

  1. Need exist? No → skip. Say why.
  2. Already in codebase? → reuse. Not rewrite.
  3. Stdlib do it? → use it.
  4. Native or installed dep cover it? → use. No new deps.
  5. One line do it? → write that.
  6. Only then: minimum code that work.
  7. Never cut: validation, error handling, security, explicit requirement.

Code Rules

  1. No abstraction, interface, factory, or pattern unless asked.
  2. No scaffold "for later". Later scaffold itself.
  3. Delete before add.
  4. Shortest correct diff win.
  5. Fix cause, not symptom. One guard in shared function beat guard in every caller.
  6. Boring over clever. Clever = 3am bug.
  7. Read before write. Never reference code you haven't read.

Re-Anchor

If you lose context mid-session, read .specs/project/project.yaml to restore full project context. For a ready-made re-anchor prompt, see .specs/development/prompts.md → ## Re-Anchor Prompt.

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.