Loading...
Loading...
Generate AGENTS.md file and docs/ knowledge base skeleton in the project root directory, and establish a document governance system for agent-first repositories. Manually triggered, writes the template after checking for existence.
npx skill4agent add ai-feier/skills init-agents-mdAGENTS.mddocs/INDEX.md/init-agents-mdAGENTS.mdAGENTS.mddocs/[To be filled]# AGENTS.md
> This file is the **entry map** for AI working in this repository, keep it concise (<100 lines).
> Principle: A directory, not an encyclopedia. What an Agent cannot see is equivalent to non-existence for it.
## Document Retrieval Method
All documents are navigated through INDEX.md layer by layer; directory tree scanning is prohibited:
Start retrieval from `docs/INDEX.md`.
## Repository Structure
[Project maintainers describe key directories and modules here]
## Coding Standards and Golden Principles
[Project maintainers add technology stack-related standards here]
## Document Governance
### Manual Approval Rules
- **No autonomous creation**: AI shall not create any documents or directories on its own; it must first request manual approval
- **No autonomous modification**: AI must explain the modification content and reasons before modifying documents, and obtain manual consent
### INDEX.md Rules (Mandatory)
- Each subdirectory under `docs/` **must** have an `INDEX.md`
- `INDEX.md` only serves as navigation: file name + one-sentence description, no actual content is allowed
- When creating a new subdirectory, the `INDEX.md` for that directory must be created synchronously, and the parent `INDEX.md` must be updated
- Directories without `INDEX.md` are equivalent to non-existence for Agents
### Progressive Document Strategy
- In the early stage of the project, only maintain `AGENTS.md` and `docs/INDEX.md`
- When new documents are needed: AI submits a request → Manual approval → AI creates the document + updates the corresponding INDEX.md
- Empty indexes are normal; documents should only be created when truly neededAGENTS.md
docs/
└── INDEX.mddocs/INDEX.md# docs/INDEX.md
> This directory is the project knowledge base. Navigate through this file; directory tree scanning is prohibited.
> Each subdirectory has an independent INDEX.md, which can be accessed progressively on demand.
## Current Documents
| Path | Description |
|------|------|
| *(No subdirectories yet)* | |
## To-be-created Documents (On-demand Trigger)
| Directory/File | Trigger Condition |
|-----------|---------|
| `design-docs/` | When formal design decisions need to be recorded |
| `usage/` | When usage specifications need to be explained to users or Agents |
| `ARCHITECTURE.md` | When the project has more than 3 clear module boundaries |
| `DESIGN.md` | When core beliefs and design principles need to be solidified |
| `QUALITY.md` | When CI is introduced to the project and quality scores need to be tracked |INDEX.mdINDEX.md# [Directory Name]/INDEX.md
> One-sentence description of the purpose of this directory.
## Current Documents
| File | Description |
|------|------|
| [filename.md](filename.md) | One-sentence description |
## To-be-created Documents (On-demand Trigger)
| File | Trigger Condition |
|------|---------|
| *(None yet)* | |AGENTS.mddocs/docs/INDEX.mdAGENTS.md[To be filled]