Writes one AGENTS.md per member and per package root, plus a root index, so an agent that opens a directory changes it without reading the tree and without guessing which path a request takes. Use when the project's knowledge base must be updated.
$npx -y skills add Uniterra-Solutions/pdd-software-development --skill study --agent claude-code
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Study?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/uniterra-solutions-study)
---
name: study
description: "Writes one AGENTS.md per member and per package root, plus a root index, so an agent that opens a directory changes it without reading the tree and without guessing which path a request takes. Use when the project's knowledge base must be updated."
version: 4.0.0
author: Tsz Kin Lai (LaiTszKin), Hermes Agent
license: MIT
platforms: [linux, macos, windows]
metadata:
hermes:
tags: [software-development, codebase-mapping, mermaid, agents-md]
related_skills: [plan, review]
---
# Study — every business branch becomes a cited `AGENTS.md`
## Context
- **The members**: the workspace manifests name them, and each member's entry points, size and depth decide how much reading it needs, while a manifest-less unit enters with the evidence for calling it a member beside its path.
- **The nested package roots**, discovered by reading each member's own tree, because a package root is defined by an entry point rather than by a folder.
- **The branches**: every decision whose outcome a caller can observe, quoted as the predicate plus the config key and default that participates.
- **The machine pass** (`scripts/branch_map_rust.py`, `scripts/branch_map_ts.py`) for Rust and TypeScript, as a lower bound: every site becomes a row, merges into a row, or is excluded with a reason, and the table never enters `AGENTS.md`.
- **Each file's recorded commit with the commits since it**, the touched paths and the net diff in a refresh, where `touched` answers where a claim could have been invalidated and `net` answers whether it still is, because a handler added and deleted leaves no net trace and a rename twice back allows no row to be rewritten.
- **The reference files**: `references/branch-survey.md` for finding branches fast, `references/branch-inventory.md` and `references/branch-extraction.md` for what earns a row and what a parser can decide, `references/diagram-choice.md` and `references/mermaid-selection-path.md` for the graph, `references/mermaid-templates.md` for the drawn shapes, `references/agents-md-format.md` for the file, `references/knowledge-drift.md` for a knowledge base the tree has moved under, and `references/reader-independence.md` for what one reader of one directory can establish.
## Goal
`{member}/AGENTS.md` and `{member}/{package_root}/AGENTS.md` are built from `assets/AGENTS.template.md`, and `{project_root}/AGENTS.md` indexes every file the map holds.
**Every file answers five facts**: what callers get from the directory, which path a request takes, what the directory assumes will not break, the cheapest command that exercises it, and the commit it was written against.
**Every branch row carries its id, its observable behaviour, its quoted trigger with `file:line` and the config key and default, and one concrete input**, and every entry point's default or fallback path is in the table. A row passes the observability test, so a caller can tell which branch ran and a validation guard earns no row.
Every branch appears exactly once as a terminal in the selection-path graph, and each selection path reads back as the conjunction its trigger states.
## Constraints
- **Every citation resolves at the commit the file names**, because a claim about a line nobody re-read records what a reader believed rather than what the file says.
- **A human-written `AGENTS.md` keeps its text**: only the marked block is written, and a human rule that conflicts is reported rather than edited.
- **The root index points and does not duplicate**, and names exactly the files that exist, because an omitted file and a row naming a deleted file are one defect seen from two sides.
- **A refresh copies every row verbatim whose cited file ended the window unchanged**, keeps ids stable, retires an id by removal rather than renumbering, and moves provenance to `HEAD`.
- **Render every mermaid block before accepting the file**, because a stray parenthesis is a lexical error that passes every citation check and a lint-only pass is not a verification.
- **A finding is recorded, not repaired**: an unreachable branch becomes a removal candidate, because a removal carries its own acceptance.
- **The map is the only change**: no production file, test or fixture is modified, because a map that also repairs cannot be told apart from a change nobody reviewed.