Llmdoc Init
Agent Buildingllmdoc-initLlmdoc Init is an Agent Skill for agent building published in the TokenRollAI/llmdoc repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.
Codex-native entry skill for bootstrapping llmdoc. Use this when you want the /llmdoc:init workflow in Codex.
How to use this skill
Bring this guide into your coding agent with a prompt tailored to the tool you use.
- Open your project in Codex.
- Copy and paste the prompt below.
- Review files and risks before approving any action.
Inspect the Agent Skill at https://github.com/TokenRollAI/llmdoc/blob/HEAD/skills/llmdoc-init/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/llmdoc-init, but wait for my approval before writing files or running scripts.
Copying this prompt does not install or run the skill. Review third-party files before use.
llmdoc-init
This skill is the Codex-native equivalent of /llmdoc:init.
Use it when:
- the repository does not have
llmdoc/yet - the existing
llmdoc/tree is incomplete or stale - you want a command-like Codex entrypoint for bootstrapping docs
Before broad exploration, follow the llmdoc operating model:
- prefer docs first, code and config second
- align with the user before non-trivial edits
- keep temporary investigation artifacts under
.llmdoc-tmp/
Then execute this workflow:
-
Inspect the project root.
- Read top-level manifests and README files.
- Avoid dependency and build directories.
-
Create or repair the llmdoc skeleton.
- Ensure these paths exist:
llmdoc/startup.mdllmdoc/must/llmdoc/overview/llmdoc/architecture/llmdoc/guides/llmdoc/reference/llmdoc/memory/reflections/llmdoc/memory/decisions/llmdoc/state/sync.md.llmdoc-tmp/investigations/
- Seed the commit watermark in
llmdoc/state/sync.md(template inskills/llmdoc/references/templates.md): setwatermark-committo$(git rev-parse HEAD), so the firstllmdoc-updatehas a valid anchor. Skip this in a non-git project.llmdoc/state/sync.mdis machine-managed state, not knowledge: never index it or add it tostartup.md/must/.
- Ensure these paths exist:
-
Run investigation.
- Prefer multiple focused investigators over one broad pass.
- On most non-trivial repositories, start with 3-5 focused slices.
- Split by theme, not by random directories.
- Run at least one follow-up pass for gaps, conflicts, and cross-cutting relationships.
- Treat investigation output as scratch material, not stable project memory.
-
Generate the initial stable docs.
- Create
llmdoc/index.mdas the global doc map. - Create
llmdoc/startup.md. - Create a small set of MUST docs.
- Create
llmdoc/overview/project-overview.md. - Create focused architecture and reference docs from the strongest investigation slices first.
- Create
-
Synchronize
llmdoc/index.md.- Index stable docs.
- Keep
memory/reflections/andmemory/decisions/separate from stable docs. - Do not treat
.llmdoc-tmp/as part of llmdoc.
-
Summarize what was created and where the startup docs live.
If the repository already contains llmdoc/, read llmdoc/index.md, llmdoc/startup.md, and the listed MUST docs before making broader changes.