agentleFS
LucabizLucabiz/agentscribe/.github/copilot-instructions.md

agentscribe

Copilot instructions3 starsChanged 4 months agoMITView on GitHub

Guidance for AI coding agents working in this repository. This file is the single source of truth. The tool-specific files (CLAUDE.md, .cursor/rules/, .github/copilot-instructions.md) are generated from it by agentscribe sync — never edit them by hand. agentscribe is a small CLI + library that generates tool-specific AI instruction files (CLAUDE.md, Cursor rules, Copilot instructions, ...) from a single AGENTS.md, and validates that source. The code lives under src/agentscribe/: - Target Python 3.9+. Every module starts with from __future__ import annotations…

  • Reads credentials
  • Installs packages

The file

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

7 rules. About 0 are common, 2 are distinctive, and 5 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 5

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  • could be automatic: a setting could enforce it
  1. Very specific:

    Keep runtime dependencies at zero (the only exception is the tomli backport on Python < 3.11).

    line 38
  2. Very specific:

    Run the full suite with pytest before considering a change done.

    line 45
  3. Very specific:

    Add or update tests in tests/ for any behavior you change.

    line 46
  4. Distinctive:

    Every CLI command and lint rule should have coverage.

    line 47
  5. Very specific:

    Do not commit secrets, credentials, or .env files.

    line 51
  6. Very specific:

    Do not hand-edit generated files (CLAUDE.md, .cursor/rules/agentscribe.mdc, .github/copilot-instructions.md).

    line 53
  7. Distinctive:

    Do not introduce new third-party runtime dependencies.

    line 55

≈ “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
<!-- Generated by agentscribe from AGENTS.md. Do not edit directly; edit AGENTS.md and run `agentscribe sync`. -->

agentscribe

Guidance for AI coding agents working in this repository. This file is the single source of truth. The tool-specific files (CLAUDE.md, .cursor/rules/, .github/copilot-instructions.md) are generated from it by agentscribe sync — never edit them by hand.

Overview

agentscribe is a small CLI + library that generates tool-specific AI instruction files (CLAUDE.md, Cursor rules, Copilot instructions, ...) from a single AGENTS.md, and validates that source. The code lives under src/agentscribe/:

  • config.py — load configuration from agentscribe.toml or [tool.agentscribe].
  • source.py — parse the source and apply agentscribe:only/except/ignore scoping.
  • targets.py — the registry of output files and how each is formatted.
  • sync.py — plan, write, and drift-check target files.
  • lint.py — conservative static checks over the source.
  • detect.py / templates.py — power agentscribe init.
  • cli.py — argparse front end.

Setup & commands

TaskCommand
Install (editable, with dev deps)pip install -e ".[dev]"
Run testspytest
Lintruff check .
Formatruff format .
Run the toolagentscribe <command> (e.g. agentscribe sync)

Code style & conventions

  • Target Python 3.9+. Every module starts with from __future__ import annotations so built-in generics (list[str]) are safe in annotations.
  • Keep runtime dependencies at zero (the only exception is the tomli backport on Python < 3.11). Do not add dependencies without strong justification.
  • Match the surrounding style; keep functions small and pure where possible.
  • Generated output must stay deterministic: LF line endings, stable ordering.

Testing

  • Run the full suite with pytest before considering a change done.
  • Add or update tests in tests/ for any behavior you change.
  • Every CLI command and lint rule should have coverage.

Do not

  • Do not commit secrets, credentials, or .env files. The linter flags common token shapes; do not add real tokens even as examples.
  • Do not hand-edit generated files (CLAUDE.md, .cursor/rules/agentscribe.mdc, .github/copilot-instructions.md); edit this file and run agentscribe sync.
  • Do not introduce new third-party runtime dependencies.

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.