Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Eriemon/agents-md-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

English  |  中文

AGENTS.md Generator

License Python Version Agent Skill Target

AGENTS.md Generator

A Codex-ready skill for generating, repairing, and verifying AGENTS.md governance from repository facts.

AGENTS.md Generator helps coding agents produce instruction files that stay grounded in the real repository instead of drifting into guessed policy. It combines trigger metadata, grouped design interviews, deterministic Python scripts, docs-governance helpers, directory-governance gates, and verification checks so an agent can move from repository facts to trustworthy AGENTS.md output.

This repository is primarily an agent skill package. The Python scripts are the deterministic execution layer; the main product is the skill workflow an agent can load and follow.

What It Solves

Handwritten agent rule files become stale quickly. Commands stop matching the repo, path references drift, and local operating rules get duplicated in inconsistent places. AGENTS.md Generator gives the agent a stricter path:

  • inspect the repository first
  • ask only for missing human policy
  • keep root and scoped AGENTS.md files small and focused
  • route docs governance, directory governance, and release governance through scripts
  • verify that metadata, paths, contracts, and reply-language rules are actually consistent

Core Capabilities

  • Root and scoped AGENTS.md generation for Codex-style coding agents.
  • Grouped design interviews with resumable state and explicit confirmation gates.
  • Controlled takeover flow for older workspaces with version-mismatched root AGENTS.md.
  • Repository fact extraction for commands, docs, CI hints, scopes, and governance signals.
  • Strong-control profiles for skill and engineering projects.
  • Docs governance for handoff, experience, development, install, and git-manager records.
  • Directory-governance review and structure gates through manage_dirs.py.
  • Compatibility shim generation for CLAUDE.md and GEMINI.md when requested.
  • Verification, audit, automated review governance, skill-effectiveness evals, and aggregate confidence checks for release readiness.

What's New In v0.7.0

  • Adds a dedicated code-comment policy reference and renders a compact policy section into generated root AGENTS.md files.
  • Tightens comment-policy coverage across templates, verification, review guidance, evals, and agent metadata.
  • Updates governance scripts and evolution templates so release evidence, documentation gates, and generated instructions stay aligned.

Skill Architecture

AGENTS.md Generator skill architecture

Workflow

AGENTS.md Generator workflow

Typical Paths

  1. Healthy workspace root: Run inspect_project.py, confirm the root AGENTS.md is healthy, and report pass status for workspace-trigger phrases related to planning or preparation.
  2. Explicit AGENTS update: Start the grouped interview, collect the missing policy, render root/scoped files, then verify.
  3. Version-mismatched old workspace: Enter takeover mode, keep identity questions minimal, still complete the structured directory contract, then repair governance.
  4. Strong-control release flow: Run quick_validate.py, audit_skill.py, verify_agents.py, evaluate_skill.py, and the review/eval gates before packaging or installation.

Repository Map

Path Purpose
SKILL.md Agent-facing routing, workflow, constraints, and verification rules.
agents/openai.yaml Skill metadata used by the host UI.
scripts/ Deterministic inspection, interview, rendering, docs-governance, directory-governance, verification, audit, and evaluation helpers.
assets/templates/ Bundled root and scoped AGENTS.md templates plus evolution material.
evals/ Repo-local skill-effectiveness cases used by run_skill_evals.py.
references/ Script guide, review checklist, question bank, capability notes, and AGENTS guidance.
docs/assets/ Hero, workflow, and architecture diagrams used in this README pair.

Quick Start

Tell your AI assistant: install https://github.com/Eriemon/agents-md-generator

Read-only inspection and scoping:

python scripts/inspect_project.py <project>
python scripts/detect_scopes.py <project>
python scripts/extract_commands.py <project>
python scripts/extract_context.py <project>

Grouped design interview and profile write:

python scripts/collect_design_profile.py <project> --start
python scripts/collect_design_profile.py <project> --answer-file partial.json
python scripts/collect_design_profile.py <project> --answers answers.json --write

Render and verify:

python scripts/render_agents.py <project> --profile <project>/.agents/agents-control.json
python scripts/verify_agents.py <project>
python scripts/manage_docs.py verify <project>

Skill-release validation:

python scripts/quick_validate.py .
python scripts/audit_skill.py .
python scripts/evaluate_skill.py . <project>
python scripts/run_skill_evals.py evals/evals.json

Advanced governance-sensitive release checks:

python scripts/review_governance.py <project> --base <sha> --head HEAD --skill-dir . --mode all
python scripts/run_confidence_gate.py <project> --review-base <sha> --external-skill-dir <healthy-skill-dir>

Compatibility shims stay opt-in:

python scripts/create_agent_shims.py <project>

Scope

AGENTS.md Generator is intentionally narrow:

  • It creates and reviews agent-governance files, not general project documentation.
  • It treats discovered commands as candidates until they are actually executed.
  • It preserves handwritten content outside managed generated blocks.
  • It keeps maintainability and script-governance detail in config-backed policy instead of repeating it everywhere in prose.
  • It should not emit secrets, private infrastructure details, generated caches, or machine-specific absolute paths.

Affiliation

Jiyuan Liu and He Li are with the School of Electronic Science and Engineering, Southeast University. They are affiliated with the Heterogeneous Intelligence and Quantum Computing Laboratory (HIQC), which works on heterogeneous intelligence, quantum computing, and related computing systems research.

Contact

For questions, collaboration, or academic use, contact: [email protected].

Citation

If this skill helps your research, teaching, or engineering workflow, please cite it. The canonical citation metadata is maintained in CITATION.cff.

@software{liu_2026_agents_md_generator,
  author       = {Jiyuan Liu and He Li},
  title        = {{AGENTS.md Generator}: An Agent Skill for Coding-Agent Context Files},
  year         = {2026},
  version      = {0.7.0},
  date         = {2026-05-21},
  url          = {https://github.com/Eriemon/agents-md-generator},
  license      = {Apache-2.0},
  note         = {Agent skill package for generating and verifying AGENTS.md files}
}

License

Apache License 2.0. See LICENSE.

About

Agent skill for generating and verifying AGENTS.md files for coding agents.

Topics

Resources

License

Contributing

Security policy

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages