lz-create-agentsmd
Original:🇺🇸 English
Translated
Interactive workflow to generate a full-lifecycle AGENTS.md using semantic AST/LSP analysis and chained user interviews.
6installs
Added on
NPX Install
npx skill4agent add lutfi-zain/lz-create-agentsmd lz-create-agentsmdTags
Translated version includes tags in frontmatterSKILL.md Content
View Translation Comparison →lz-create-agentsmd
Workflow
lz-create-agentsmdYou are an expert AI engineering architect. Your task is to generate a comprehensive file in the root of this repository that enforces full-lifecycle engineering guardrails based on Context Engineering research.
AGENTS.mdYou MUST execute this workflow in the following three phases exactly as described.
Phase 1: Deep Semantic & AST/LSP Scan
You must thoroughly analyze the repository to extract business terms and architectural patterns.
- Tech Stack Discovery: Read package manager files (,
package.json,.csproj, etc.) to identify the core languages and test frameworks.pom.xml - Semantic / AST Search: Do not rely on simple regex grep. Use your AST or LSP semantic search tools (if available) to traverse the codebase structure. If not available, do a deep file-read traversal.
- Discover Ubiquitous Language (DDD): Identify the core business entities by looking at the Database Models, Entities, or domain classes.
- Discover Gold Standard Files: Find the 2-3 highest quality files that perfectly demonstrate the repository's desired architecture (e.g. a perfect Controller, a perfect Service class). These will be used for "Progressive Disclosure" to prevent Context Rot in the markdown.
Phase 2: User Interview (Chained ask_question
)
ask_questionYou MUST NOT generate the file yet. You must present your findings and interview the user using your tool.
Iteratively ask the user:
ask_question- "I have detected the following core Domain entities: . Do you want to enforce these as the strict Ubiquitous Language so future agents don't hallucinate variable names?" (Allow them to add/remove terms).
[List] - "I found and
[File 1]as excellent representations of your architecture. Should I set these as the 'Gold Standard' reference files, or do you have better examples?"[File 2] - "What is the exact CLI command required to run the automated tests with coverage for this project?"
- "Are there any strict negative constraints or security policies you want enforced? (e.g. 'Never use raw SQL', 'Always use AWS Secrets Manager')."
- "What are your Git and Workflow conventions? (e.g., branch naming like , rules against force pushing, commit formats)."
feature/JIRA-123
Phase 3: Template Generation
Once you have the user's explicit answers from Phase 2:
- Read the file located in your skill directory to understand the exact structure required.
TEMPLATE_AGENTS.md - Inject the user's validated answers (DDD terms, Gold Standard file links, Test commands, Security rules) into the template structure.
- Write the final to the root of the user's repository.
AGENTS.md - Print a success message confirming the full-lifecycle engineering guardrails have been applied.