X9 Context Files Generator
ASecurityUse when creating, auditing, or updating repository-level AGENTS.md, CLAUDE.md, or README.md, including inserting or refreshing this skill's portable rule blocks (execution discipline, sources of truth, documentation, dependency updates, interface references, Compound Engineering) — «создай AGENTS.md», «обнови README», «настрой контекст репозитория», «вставь переносимые блоки правил», "generate repository context files". Do not use for global personal instructions, skills, the development-rul...
- 5 stars
- 0 votes
- 0 copies
- 3 views
- Added September 19, 2026
Security analysis
100/100Pro scans all 5 files and shows the line behind each finding
npx -y skills add xonika9/agent-skills --skill x9-context-files-generator --agent claude-codeAre you the author of X9 Context Files Generator?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/xonika9-x9-context-files-generator)---
name: x9-context-files-generator
description: Use when creating, auditing, or updating repository-level AGENTS.md, CLAUDE.md, or README.md, including inserting or refreshing this skill's portable rule blocks (execution discipline, sources of truth, documentation, dependency updates, interface references, Compound Engineering) — «создай AGENTS.md», «обнови README», «настрой контекст репозитория», «вставь переносимые блоки правил», "generate repository context files". Do not use for global personal instructions, skills, the development-rules block owned by x9-web-stack, the vault block owned by x9-personal-vault, the CTO block owned by x9-cto, or ordinary documentation unrelated to onboarding agents or humans.
compatibility: Requires x9-agent-instructions, which owns the quality of agent-facing instruction prose.
---
# Repository context files
Create concise, evidence-backed onboarding files for two audiences: agents (`AGENTS.md`/`CLAUDE.md`) and humans (`README.md`). Existing files are user-owned inputs, not blank templates.
For every Create, Audit, or Update that touches agent-facing instructional prose in `AGENTS.md` or an explicitly exceptional `CLAUDE.md`, load and apply `x9-agent-instructions` before writing or judging that prose. It is a subordinate instruction-quality rubric, not the primary context-file workflow, and owns language, prescription, duplication, artifact references, and what earns a line or a change. This skill remains the owner of repository evidence, audience selection, canonical files, merge and preservation behavior, `AGENTS.md`/`CLAUDE.md` normalization, and `README.md`.
Do not apply the subordinate rubric to `README.md` or to a `CLAUDE.md` that contains only the canonical `@AGENTS.md` import. Fold its findings into this workflow's single report and approval gate rather than producing a second handoff. If `x9-agent-instructions` is unavailable, continue the remaining repository and structural checks, record the instruction rubric as `degraded`, and do not claim a complete or clean agent-file result. README-only work records it as `not applicable`.
## Select the action
- **Create or update:** an explicit request to create, update, fix, or rewrite a context file authorizes the requested in-scope edits; do not ask for the same permission again.
- **Audit:** an explicit audit/check request is read-only. Completion is a report accounting for every requested file, with source evidence and impact for each finding, the smallest complete proposed change, validation results, and unverified claims. Retain every finding by the `What earns a change` section of `x9-agent-instructions`, including README findings where the rest of that rubric is not applicable. Ask whether to apply retained fixes, and include any optional rule-block choices defined in [references/rule-blocks.md](references/rule-blocks.md) in the same question round.
- **Bare skill invocation:** inspect the current repository read-only by default. If changes would help, show the proposal and ask once before editing.
Infer the action from the whole request, not only trigger words.
## Workflow
1. Read current repository instructions and README completely enough to preserve non-inferable rules. Inspect actual commands, manifests, CI, and representative code before writing.
2. Classify content by audience:
- Agent file: commands, dangerous gotchas, local constraints, non-inferable conventions, and verification contracts.
- README: purpose, setup, normal usage, and links to deeper material.
3. For agent files, apply the canonical ownership, normalization, preservation, derivability, and verification contract in [references/agents-md.md](references/agents-md.md).
4. For README work, apply [references/readme.md](references/readme.md); it owns preservation and verification for that audience.
5. Use English for machine-facing instructions by default; follow repository/user language when human maintenance or domain literals make that clearer.
6. Run commands you present only when they are safe, local, and within the requested repository scope. Read-only inspection and ordinary local validation are allowed by default. Destructive, external, costly, deployment, migration, production-data, account-mutating, or credential-changing commands require explicit user authority; otherwise preserve the command and label it unverified with the reason.
7. In a code repository, finish by offering the development rule blocks in [references/rule-blocks.md](references/rule-blocks.md); it owns when to offer them and how to insert or update them.
Read [references/research-basis.md](references/research-basis.md) when judging how much inferred architecture belongs in context.
## Boundaries
- Global personal instruction files belong to `x9-agent-instructions`.
- Skill folders belong to `x9-skill-creator`.
- Do not put personal absolute paths such as `/Users/<name>/...` or `/home/<name>/...` in committed files. Prefer repository-relative paths or neutral placeholders; keep a machine-bound path only when the repository genuinely depends on that machine and the user explicitly wants it documented.
## Done for Create or update
- The delivered diff and verification evidence satisfy the applicable agent-file or README contract.
- Commands and paths trace to the current repository.
- Agent and human files contain only behavior-changing audience-specific material.
- The instruction rubric is reported as `applied`, `not applicable`, or `degraded`; a complete or clean agent-file result requires `applied`.
- A fresh-context reader can start the project without inventing a command.
- Every rule block the user chose meets the done condition in [references/rule-blocks.md](references/rule-blocks.md#done).
The [onboarding declaration](references/onboarding.json) is the machine-readable onboarding contract.
Files in this skill
- SKILL.md
- references/agents-md.md
- references/onboarding.json
- references/readme.md
- references/research-basis.md
Attribution
Related skills
View all in ai-agents →Comments
Loading comments…
Newsletter
Get the weekly list of safe new skills, and the ones we pulled.