Agent MD Wizard
Paste the following prompt into your AI chat to install this skill:
Please install @user_0499049c/agent-md-wizard according to https://skillhub.cn/install/skillhub.md.
About this skill
Problem
In monorepos, mixed-language repositories, or projects with sparse documentation, agents often do not know which build, lint, or test commands to run, and they may modify generated files, execute risky migrations, or bypass team review rules. Asking a model to guess repository conventions usually produces guidance that misses command boundaries and can accidentally overwrite manual adjustments in an existing AGENT.MD.
How It Works
This skill first runs scripts/detect_repo_context.py to inspect manifests, lockfiles, Docker or CI files, and existing AGENT.MD signals, then returns normalized JSON. It follows the six-round question tree from references/question-tree.md: project shape and topology, main stack and runtime, install/dev/build/test commands, coding and testing expectations, risk controls, and collaboration notes. High-confidence detections are used to prefill answers, while low-confidence fields are asked explicitly. The final draft is previewed through scripts/build_agent_md.py; the file is written only after confirmation into the repository root as AGENT.MD.
Boundaries
It is intended for generating or incrementally updating an agent policy for one repository, not for replacing CI, code review, or security scanning. If command signals are weak, key commands need manual confirmation. For mixed-language repositories, short branch questions can be triggered to avoid merging submodule commands into the root. When an AGENT.MD already exists, prefer incremental edits over rewriting the document tone.
Use Cases
- Before onboarding a stranger monorepo, generate a usable AGENT.MD using repo detection and six-round questions.
- When filling out legacy repo docs, incrementally update the existing AGENT.MD instead of rewriting team conventions.
- For polyglot projects, lock down build, lint, and test command boundaries to prevent agents from running wrong scripts.
- With weak CI signals, confirm dangerous operations, migrations, and generated-file rules into a risk-control checklist.
Best For
- Frontend/backend engineers maintaining monorepos who need submodule commands and test thresholds encoded in agent rules.
- Tech leads inheriting legacy repos who want to preserve the existing AGENT.MD while adding risk-control notes.
- CI and local development workflow engineers who need clear build, lint, test, and dangerous-operation boundaries.
- Polyglot repository maintainers who need to separate root and submodule commands to prevent agent misuse.
Related Skills
Automatically indexes Gradle-cached AAR/JAR dependency classes and returns library coordinates, versions, and public APIs by fully qualified name, using only the Python standard library.
Codifies AMT and YourMT3 training conventions, script patterns, hyperparameters, precision, checkpoints, and NaN safeguards.
Retrieve relevant chunks from a customer-managed PKM dataset by dataset_id and return concise, source-annotated answers.
Convert PRDs, user stories, or functional specs into prioritized test-point checklists covering functional, business-rule, boundary, exception, and non-functional dimensions.