agentleFS
dgeniodgenio/agent-kernel/.github/copilot-instructions.md

agent-kernel

Copilot instructions2 starsChanged 3 months agoApache-2.0View on GitHub

Canonical rules: AGENTS.md. This file projects review-critical rules that must be visible during GitHub PR review. Flag these in every PR — CI does not catch them: Canonical checklist: docs/agent-context/review-checklist.md Non-negotiable. Violations silently degrade security: Full list: docs/agent-context/invariants.md

The file

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

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

  • 1

    Very specific

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

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

    No security bypass vectors: whitespace-only justification, truncated JSON, bare int() on untrusted input.

    line 11
  2. Distinctive:

    No dead code: unused parameters, fixtures, or helpers.

    line 12
  3. Distinctive:

    No backward-compat breaks: adding required methods to an existing Protocol breaks downstream.

    line 13
  4. Distinctive:

    If a docstring changed, verify it matches the final code.

    line 21
  5. Distinctive:

    Follow conventions in AGENTS.md.

    line 39
  6. Distinctive:

    No new dependencies without justification.

    line 42

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

Copilot Instructions — agent-kernel

Canonical rules: AGENTS.md. This file projects review-critical rules that must be visible during GitHub PR review.

Review checklist

Flag these in every PR — CI does not catch them:

  • Docstrings and descriptions must match actual implementation.
  • No security bypass vectors: whitespace-only justification, truncated JSON, bare int() on untrusted input.
  • No dead code: unused parameters, fixtures, or helpers.
  • No backward-compat breaks: adding required methods to an existing Protocol breaks downstream.
  • Naming consistent: use capability, principal, grant, Frame — never synonyms.

Canonical checklist: docs/agent-context/review-checklist.md

Code and docs reviewed together

  • PRs that change public APIs, workflows, invariants, review rules, or path conventions must include doc updates.
  • If a docstring changed, verify it matches the final code.
  • Code is authoritative over docs. Fix stale docs in the same PR.
  • Surface contradictions explicitly. Do not silently work around them.

Invariants

Non-negotiable. Violations silently degrade security:

  • Firewall always mediates: RawResult → Frame. Never bypass.
  • Token verification before every invocation. Never skip.
  • Non-admin principals never get raw response mode.
  • Policy rule ordering is security-critical — a rule placed before sensitivity checks creates a silent bypass.
  • New SensitivityTag values need a matching policy rule, or the tag is silently ignored.

Full list: docs/agent-context/invariants.md

Convention discipline

  • Follow conventions in AGENTS.md. Do not invent new ones.
  • make ci is the single pre-push command. Do not guess alternatives.
  • Custom exceptions from errors.py only. Never raise bare ValueError/KeyError to callers (catching stdlib internally to remap is fine).
  • No new dependencies without justification.

Canonical sources

TopicFile
All shared rulesAGENTS.md
Hard invariantsdocs/agent-context/invariants.md
Full review checklistdocs/agent-context/review-checklist.md
Workflows & commandsdocs/agent-context/workflows.md
Recurring mistakesdocs/agent-context/lessons-learned.md
Architecture intentdocs/agent-context/architecture.md

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.