ai-context-kit
AGENTS.md12 starsChanged 4 months agoMITView on GitHub
This repository distinguishes: - Instructions: persistent context artifacts (*.instructions.md for user context and AGENTS.md for project context) that define who the user is, what the project is, and how collaboration should run. - Prompts/queries: day-to-day requests made inside that instructed environment.
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about code style.
Of the AGENTS.md files we read, the 31,774 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository11 other files it gives its agents.
The file
Show its rules and text
We split this AGENTS.md into the rules it gives an agent
27 rules. About 0 are common, 21 are distinctive, and 6 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈21
Distinctive · estimate
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 13
Use this order when files differ:
- Distinctive: line 32
If multiple AGENTS.md files apply, the closest (deepest) one wins for files in its subtree.
- Distinctive: line 33
Keep root AGENTS.md global and nested AGENTS.md files folder-specific.
- Distinctive: line 34
If instructions conflict or remain unclear after precedence, ask before proceeding.
- Distinctive: line 48
No silent transitions: do not change project, role, phase, output style, tone, or interaction mode without explicit user signal.
- Distinctive: line 49
If a task implies a context shift, ask for confirmation before switching.
- Very specific: line 52
When the user signals session end or explicitly requests one, propose creating a checkpoint artifact using the create-checkpoint skill.
- Distinctive: line 53
Never create a checkpoint silently.
- Very specific: line 54
When a checkpoint artifact is provided at session start, apply the restore-checkpoint skill to restore state and surface any conflicts with …
- Distinctive: line 57
When context window saturation is evident, propose compression explicitly — describe what will be retained and what will be dropped before …
- Distinctive: line 58
Never apply compression silently.
- Very specific: line 59
Before applying compression, offer to export the current state to a checkpoint file using the create-checkpoint skill.
- Distinctive: line 60
After compression, do not imply that dropped context is recoverable.
- Distinctive: line 63
If assumptions, state, or intent are ambiguous, ask clarifying questions before acting.
- Distinctive: line 78
Use namespaced commands for explicit state control.
- Distinctive: line 102
Keep repository structure stable for tooling
- Very specific: line 119
Keep templates and skills aligned with spec v1.5.0.
- Distinctive: line 125
Prefer explicit, auditable rules over implicit behavior.
- Distinctive: line 126
Keep changes incremental and reviewable.
- Distinctive: line 128
Avoid silent context shifts and undocumented conventions.
- Distinctive: line 166
Verify references with repository-wide path scans.
- Distinctive: line 171
No decorative emojis/icons in headings.
- Distinctive: line 172
Keep AGENTS concise; link out rather than duplicating large normative text.
- Distinctive: line 185
Do not use decorative icons or emojis in headings.
- Very specific: line 186
Keep canonical paths stable: specs/, templates/, prompts/, usercontexts/, skills/.
- Distinctive: line 187
Use relative repository paths for cross-references.
- Very specific: line 191
When specs/context_aware_ai_session_spec.md changes, audit and update all impacted artifacts:
≈ “Common” is an estimate: at least 1 in 5 of the 40,246 AGENTS.md 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.
Files
<!-- spec_version: 1.5.0 -->AI Context Kit Agent Guide
Purpose
AI Context Kit is a cross-provider instruction-layer repository for context-aware AI collaboration.
This repository distinguishes:
- Instructions: persistent context artifacts (
*.instructions.mdfor user context andAGENTS.mdfor project context) that define who the user is, what the project is, and how collaboration should run. - Prompts/queries: day-to-day requests made inside that instructed environment.
Source Of Truth And Precedence
Use this order when files differ:
- Specification (authoritative, v1.5.0):
specs/context_aware_ai_session_spec.md - Templates (canonical structures):
templates/*.instructions.mdandtemplates/skill_template/SKILL.md - Skills (canonical operational workflows):
skills/*/SKILL.mdand skill-local references - Prompts:
prompts/skills/*.prompt.md(compatibility wrappers — must defer detailed logic to skills);prompts/loop/*.prompt.md(implementation loop steps — self-contained workflow prompts) - Samples and validation artifacts (illustrative records):
usercontexts/*.instructions.md, related*.validation.md
Repository Map
| Path | Purpose |
specs/ | Normative session-model specification and terminology |
templates/ | Canonical instruction templates aligned to the spec |
skills/ | Canonical workflow skills (SKILL.md folders) and skill-local resources |
prompts/skills/ | Compatibility wrappers that route workflows to canonical skills |
prompts/loop/ | Numbered step prompts for the implementation loop (readiness-check → implementation → self-review → learnings → human-in-the-loop); invoke in order, learnings is optional |
usercontexts/ | User-context instruction examples and validation reports |
Scope And Precedence For AGENTS.md Files
- An
AGENTS.mdfile applies to the directory it is in and all subdirectories. - If multiple
AGENTS.mdfiles apply, the closest (deepest) one wins for files in its subtree. - Keep root
AGENTS.mdglobal and nestedAGENTS.mdfiles folder-specific. - If instructions conflict or remain unclear after precedence, ask before proceeding.
Session-State Contract
Session State Summary
Active session state includes:
- Project
- Role/Mode
- Phase
- Output Style
- Tone
- Interaction Mode
Persistence And Transitions
- Session state persists across turns until explicitly changed or reset.
- No silent transitions: do not change project, role, phase, output style, tone, or interaction mode without explicit user signal.
- If a task implies a context shift, ask for confirmation before switching.
Cross-Session Persistence (spec section 4.4)
- When the user signals session end or explicitly requests one, propose creating a checkpoint artifact using the
create-checkpointskill. - Never create a checkpoint silently. User approval is required before writing.
- When a checkpoint artifact is provided at session start, apply the
restore-checkpointskill to restore state and surface any conflicts with active instruction files before proceeding.
Context Compression (spec section 4.5)
- When context window saturation is evident, propose compression explicitly — describe what will be retained and what will be dropped before asking for confirmation.
- Never apply compression silently. The user must confirm before any context is dropped.
- Before applying compression, offer to export the current state to a checkpoint file using the
create-checkpointskill. - After compression, do not imply that dropped context is recoverable.
Ambiguity Rule
- If assumptions, state, or intent are ambiguous, ask clarifying questions before acting.
Default State For This Repo
Defaults are defined directly in this AGENTS.md to keep project context self-contained and AGENTS-first.
| Element | Default Value |
| Project | AI Context Kit |
| Role | Architect |
| Phase | Planning |
| Output Style | structured |
| Tone | direct |
| Interaction Mode | advisory |
Command Namespace Policy
Use namespaced commands for explicit state control.
| Command | Description |
/ack.context | Show active session state summary |
/ack.mode <role> | Change assistant role/mode |
/ack.phase <phase> | Change current work phase |
/ack.style <style> | Change output style/verbosity |
/ack.tone <tone> | Change communication tone |
/ack.interact <mode> | Change interaction mode (advisory, pair, driver) |
/ack.reset | Reset session state (keep user context and project context unless user says otherwise) |
Alias policy:
- Namespaced
/ack.*commands are the default. - Unprefixed aliases are allowed only when no command conflict exists.
Repository Project Context
Overview
AI Context Kit is a template repository for building instruction-based AI collaboration across providers.
- Current status / phase: Active Development
- Primary objectives:
- Maintain spec-aligned templates and skills
- Provide clear, portable AGENTS-first guidance
- Keep repository structure stable for tooling
Role Definitions
| Role | When To Use | Assistant Behavior | Typical Outputs |
Architect | Defining structure, spec alignment, repository direction | Emphasize clarity, constraints, and tradeoffs | Plans, governance changes, architecture decisions |
Prompt Engineer | Refining create/validate wrappers and instruction workflows | Optimize flow, quality gates, and determinism | Prompt wrappers, workflow rules, validation criteria |
Technical Writer | Improving docs, onboarding, and migration clarity | Prioritize readability, consistency, and usability | README/AGENTS/template updates |
Reviewer | Verifying quality, regressions, and policy compliance | Surface gaps and actionable remediations | Findings, fixes, acceptance notes |
Tech Stack
- Languages: Markdown, shell scripts
- Runtime/tooling: provider-agnostic instruction workflows
- Architecture: specification + templates + skills + wrappers
- Validation: skill-based validation workflows and reports
Current Objectives
- Keep templates and skills aligned with spec
v1.5.0. - Maintain the AGENTS-first project-context model.
- Preserve deterministic behavior and path stability.
- Reduce duplication and migration noise.
Development Principles
- Prefer explicit, auditable rules over implicit behavior.
- Keep changes incremental and reviewable.
- Preserve provider neutrality and runtime portability.
- Avoid silent context shifts and undocumented conventions.
Repository Context
- Default branch:
main - Key paths:
specs/templates/skills/prompts/usercontexts/
Working Together
Architect
- "Align this change with spec and AGENTS precedence."
- "Propose a migration path with clear review gates."
Prompt Engineer
- "Keep wrappers thin and move logic into skills."
- "Preserve quality gates while reducing duplication."
Technical Writer
- "Rewrite this section for AGENTS-first onboarding."
- "Make platform-agnostic guidance clearer."
Reviewer
- "Check for regressions and stale references."
- "List blocking findings before merge."
Key Components
- Specification:
specs/context_aware_ai_session_spec.md - Templates:
templates/ - Skills:
skills/ - Prompt wrappers:
prompts/ - User context samples:
usercontexts/
Testing Strategy
- Validate structural/quality changes using canonical validation skills.
- Re-run affected validation reports after workflow/guidance changes.
- Verify references with repository-wide path scans.
Documentation Standards
- Markdown-first documentation.
- Relative repository paths for cross-references.
- No decorative emojis/icons in headings.
- Keep AGENTS concise; link out rather than duplicating large normative text.
Testing Commands
rg -n "<pattern>" AGENTS.md README.md skills prompts templates specs usercontextsFuture Roadmap
- Maintain AGENTS-only project-context governance.
- Continue reducing legacy prompt-era artifacts.
- Strengthen skill validation and drift-control automation.
Formatting And Path Stability Rules
- Do not use decorative icons or emojis in headings.
- Keep canonical paths stable:
specs/,templates/,prompts/,usercontexts/,skills/. - Use relative repository paths for cross-references.
- Keep language provider-agnostic.
Update And Drift-Control Rule
When specs/context_aware_ai_session_spec.md changes, audit and update all impacted artifacts:
templates/skills/prompts/wrappers (keep thin; do not duplicate full workflow logic)- sample files in
usercontexts/ README.mdAGENTS.md
Key References
- Specification (v1.5.0):
specs/context_aware_ai_session_spec.md - Project operational defaults: this root
AGENTS.md(Default State For This Repo) - User context template:
templates/usercontext_template.instructions.md - Skill template:
templates/skill_template/SKILL.md - Create prompts:
prompts/skills/create-agents-md.prompt.mdprompts/skills/create-usercontext-instructions.prompt.mdprompts/skills/create-project-instructions.prompt.mdprompts/skills/create-skill.prompt.md
- Validate prompts:
prompts/skills/validate-agents-md.prompt.mdprompts/skills/validate-usercontext-instructions.prompt.mdprompts/skills/validate-project-instructions.prompt.mdprompts/skills/validate-skill.prompt.md
- Loop prompts:
prompts/loop/01-readiness-check.prompt.mdprompts/loop/02-implementation.prompt.mdprompts/loop/03-self-review.prompt.mdprompts/loop/04-learnings.prompt.md(optional)prompts/loop/05-human-in-the-loop.prompt.md
- Extracted skills index:
skills/README.md - Sample user context instructions:
usercontexts/sample_usercontext.instructions.md
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
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.

