# Loop Documentation

> SOP for documenting a feedback loop — classify, describe dynamics, identify break points.

- Skill: `yogsoth-ai/loop-documentation` (Agent Skill)
- Install (CLI): `npx skillmds@latest add yogsoth-ai/loop-documentation`
- Raw SKILL.md: https://api.skillmd.com/api/skills/yogsoth-ai/loop-documentation/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Docs & Writing
- Author: yogsoth-ai (https://skillmd.com/u/yogsoth-ai)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/yogsoth-ai/loop-documentation

---


# Loop Documentation

Document an identified feedback loop in the causal graph.

## Tool

CC file write + `vault_add_edge`

## Protocol

1. Write `relations/<loop-slug>.md` with frontmatter (type: relation, tags: [feedback-loop])
2. Body: loop type (reinforcing/balancing), variables involved, time delay, dominant conditions
3. Add edges connecting the relation page to all variables in the loop
4. Identify and document potential break points
5. **Inline wikilinks:** For each edge created, ensure the loop page body contains `[[dir/slug]]` pointing to the target variable (dir/slug = target path minus `.md`). Place inline where the variable is mentioned. Skip if already present.

## HARD-GATE

<HARD-GATE>
Must classify loop as reinforcing or balancing. Must list all variables in the cycle.
</HARD-GATE>

## Yield

Returns: `{ path: string, loop_type: string, variables: string[], break_points: string[] }`

