Skip to content
Back to skills

Study

ASecurity

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.

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 1, 2026
developmenttypescriptrustgo

Works with

  • terminal

Security analysis

A100/100

Pro scans all 14 files and shows the line behind each finding

Scanned December 5, 2026

npx -y skills add Uniterra-Solutions/pdd-software-development --skill study --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Study?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Study
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/uniterra-solutions-study/badge)](https://www.skillsdirectory.com/skills/uniterra-solutions-study)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
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.

Files in this skill

  • SKILL.md34.7 KB
  • assets/AGENTS.template.md1.9 KB
  • references/agents-md-format.md7.6 KB
  • references/branch-extraction.md6.4 KB
  • references/branch-inventory.md7.4 KB
  • references/branch-survey.md6.3 KB
  • references/delta-refresh.md12.7 KB
  • references/diagram-choice.md5.1 KB
  • references/mermaid-selection-path.md5.1 KB
  • references/mermaid-templates.md7.8 KB
  • references/subagent-brief.md10.1 KB
  • scripts/_branchmap.py14.3 KB
  • scripts/branch_map_rust.py25.7 KB
  • scripts/branch_map_ts.py25.9 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.