Skip to content
Back to skills

Survey

ASecurity

Draft the missing glossary entries, diagrams and ADRs of an existing codebase from its code, git history and docs, so a project set up with /odhyp:setup starts the workflow with shared terms. Run on an existing codebase that has no glossary, diagrams or ADRs yet, or to fill gaps later; only a person starts it.

  • 2 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 26, 2026
developmentrustgogitapi

Works with

  • api

Security analysis

A100/100

Scanned November 26, 2026

npx -y skills add odhyp/skills --skill survey --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Survey?

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

Security grade badge for Survey
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/odhyp-survey/badge)](https://www.skillsdirectory.com/skills/odhyp-survey)

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: survey
description: Draft the missing glossary entries, diagrams and ADRs of an existing codebase from its code, git history and docs, so a project set up with /odhyp:setup starts the workflow with shared terms. Run on an existing codebase that has no glossary, diagrams or ADRs yet, or to fill gaps later; only a person starts it.
disable-model-invocation: true
---

Read the odhyp block in `CLAUDE.md` for the `Glossary:`, `Diagrams:` and `Decisions:` lines. No odhyp block: stop and say to run `/odhyp:setup`. A missing `Diagrams:` or `Decisions:` line: draft no diagrams or no ADRs, and say in the report to re-run `/odhyp:setup` to add it.

A run only adds: it drafts missing terms, diagrams and ADRs and never rewrites an existing entry, diagram or ADR, because those hold decisions a person made.

## 1. Set the scope

The scope is the folders given as arguments (`/odhyp:survey src/api src/core`); with none, the whole repo. When the scope is too large to read well in one pass, change nothing, list its top-level folders, ask which to survey, and stop: a glossary drafted from skimmed code gives every later session wrong words.

## 2. Read

Read, within the scope: the code, the git history (`git log --show-pulls --format="%h %s%n%b" -- <folders>`), the README and the docs. Then read what already exists: the glossary file, the `.mmd` files in the diagrams folder, and the ADRs in the decisions folder.

## 3. Draft

Write every draft to disk, uncommitted.

**Glossary.** Skip silently when the `Glossary:` line is missing. Read `${CLAUDE_PLUGIN_ROOT}/templates/GLOSSARY-FORMAT.md`; entries follow it, project-specific terms only. Add only terms the file does not have; when the file is missing, create it at that path with a `# Glossary` H1 when the first term arrives. When the code uses two or more names for one thing, the most common becomes the term and the others go under `_Avoid_`; flag that entry in the table for the user to confirm. Before adding to an existing file, run `git status --porcelain -- <glossary file>`: any output means uncommitted changes the commit would sweep in, so add no terms, name the file, and say to commit or stash them and run `/odhyp:survey` again.

**Diagrams.** Run the `diagram` skill (`odhyp:diagram`) for each of its standard views the scope has something to show in and the diagrams folder does not yet have. Never edit an existing diagram.

**ADRs.** Write an ADR only where a commit, PR or code comment states the reason for a decision (a PR counts through its merge or squash commit message in `git log`): an ADR records the why, and one guessed from code invents reasons later sessions will trust. Start each from `${CLAUDE_PLUGIN_ROOT}/templates/adr.md`, numbered from one above the highest `NNNN` in the decisions folder (`0001` when there is none), file `<decisions>/NNNN-<kebab-title>.md`. Skip a decision an existing ADR already records. Every other decision becomes a **candidate**: one line in the report (the decision and where it shows), never a file, because a candidate has no reason and must not sit in the decisions folder looking like a record.

**Drift.** Where the code contradicts an existing glossary entry, diagram or ADR, change nothing there; list it as a finding.

## 4. Report and confirm

In chat show only:

1. A table of this run's files: file, kind (glossary, diagram, ADR), what it adds. One row per glossary term, with flagged synonym entries marked for the user to confirm.
2. **Candidates** for `/odhyp:to-adr`, one line each.
3. **Findings**, numbered, each with `path:line`, what contradicts what, and the next step by kind: `/odhyp:implement N` to fix the code or a diagram, `/odhyp:to-adr` to supersede or amend an ADR, `/shape` to settle a glossary term.

With nothing drafted, say so, give the candidates and findings, and stop.

Ask the user to approve the drafts or ask for changes. For each revision request, edit the files and report one line per changed file. When a revision drops or merges ADR drafts, delete the files no longer used and renumber the rest of this run's ADRs (file name and every mention that names them) so the IDs stay consecutive. Only an explicit approval ends the loop; a reply that approves and also asks for a change is a revision and needs another round. Never skip the loop. A rejection deletes the files this run created and removes the entries it added to an existing glossary, and nothing else.

## 5. Commit

On approval, stage and commit only this run's files, so anything the user already had staged stays out:

```
git add <files>
git commit -m "docs(survey): <subject>" -- <files>
```

No `Refs:` footer. Never `git add -A`. Never push.

Then give the commit hash and repeat the candidates and the numbered findings. Stop.

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.