dotfile-hone
БесплатноБез исполняемых скриптовНе проверенUse when a pipeline DOT file has passed structural validation but may still have flow inefficiencies, spec fidelity gaps, or information loss in prompts. Use…
от harperreed★ 339 звёзд на GitHubОб этом скилле
dotfile-hone
Multi-pass deep refinement of pipeline DOT files. Goes beyond structural correctness (dotfile-audit) to catch flow inefficiencies, spec information loss, and missing domain invariants in prompts.
REQUIRED BACKGROUND: Run dotfile-audit first. This skill assumes structural validation already passes.
When to Use
digraph when_to_hone {
"DOT file exists?" [shape=diamond];
"Passes dotfile-audit?" [shape=diamond];
"Run dotfile-audit first" [shape=box];
"Has original spec/design doc?" [shape=diamond];
"Run dotfile-hone" [shape=doublecircle];
"Skip — honing needs a spec to compare against" [shape=box];
"DOT file exists?" -> "Passes dotfile-audit?" [label="yes"];
"DOT file exists?" -> "Run dotfile-audit first" [label="no"];
"Passes dotfile-audit?" -> "Has original spec/design doc?" [label="yes"];
"Passes dotfile-audit?" -> "Run dotfile-audit first" [label="no"];
"Has original spec/design doc?" -> "Run dotfile-hone" [label="yes"];
"Has original spec/design doc?" -> "Skip — honing needs a spec to compare against" [label="no"];
}
Process Overview
Four passes, each catching progressively subtler issues:
| Pass | Focus | Catches |
|---|---|---|
| 1. Flow Analysis | Dependency graph optimization | Unnecessary serialization, missing selective joins |
| 2. Reverse Spec Test | Information loss detection | Domain rules lost in spec→plan→prompt telephone game |
| 3. Invariant Embedding | Prompt enrichment | Missing data models, permissions, enums, field schemas |
| 4. Verification | Confirm fixes worked | Remaining gaps after embedding |
Pass 1: Flow Analysis
Analyze the dependency graph for unnecessary serialization and optimization opportunities.
Check Fan-out/Fan-in Efficiency
For each fan-in (tripleoctagon) node, ask: Does every incoming track actually need to wait for every other track?
# BAD: Monolithic fan-in forces unnecessary waiting
fanout_L2 -> impl_tasks;
fanout_L2 -> impl_bugs;
fanout_L2 -> impl_memory;
fanout_L2 -> impl_search;
impl_tasks -> fanin_all; # Memory doesn't need Tasks
impl_bugs -> fanin_all; # Memory doesn't need Bugs
impl_memory -> fanin_all; # Search doesn't need Memory
impl_search -> fanin_all;
# GOOD: Selective joins — only wait for actual dependencies
impl_tasks -> boards_ready; # Boards needs Tasks + Bugs
impl_bugs -> boards_ready;
boards_ready -> impl_boards;
impl_entity_index -> impl_memory; # Memory only needs Entity Index
impl_entity_index -> impl_search; # Search only needs Entity Index
Check Sequential vs Parallel
For each sequential edge (A -> B), ask: Does B actually depend on A's output?
If not, both should be in a fan-out. Common false dependencies:
- Components that share a foundation but don't need each other
- Test/verify nodes that could run in parallel across independent components
Print Flow Analysis
Fan-out efficiency:
[x] fanout_L1: 3 tracks, all independent — correct
[ ] fanin_all: 10 inputs, but Memory only needs Entity Index — add selective join
[ ] impl_boards: waits for all L2, but only needs Tasks + Bugs — add selective join
Sequential dependencies:
[x] setup -> plan: correct, plan needs scaffolding
[ ] impl_memory -> impl_search: false dependency, both only need Entity Index
Pass 2: Reverse Spec Test
The most powerful technique. Dispatch a subagent to reverse-engineer a spec from ONLY the DOT file, then compare against the original spec.
Why This Works
Prompts are the DOT file's "unit tests" — they're what agents actually execute. If a domain rule isn't in the prompt, it won't be implemented. The reverse spec test catches information that was in the original spec but got lost during generation.
How to Run
Dispatch a subagent with this prompt:
Read the file <dot_file_path>. From ONLY the DOT file (do not read any other files),
reverse-engineer a complete project specification. Extract:
1. Product overview and goals
2. Architecture and tech stack
3. Data model (all collections/tables, their fields, types, relationships)
4. Permission/access control rules
5. API surface (endpoints, commands, operations)
6. Business logic and invariants
7. Enums and status values
8. Testing strategy
9. Quality requirements
Be as detailed as possible. Extract every concrete detail from the node prompts.
Write the result to docs/plans/reverse_spec.md
Compare Against Original
After the subagent writes the reverse spec, compare it against the original spec section by section:
| Section | Original Spec | Reverse Spec | Gap? |
|---|---|---|---|
| Collections | 12 collections with full field schemas | 8 collections, fields vague | YES — 4 collections missing from prompts |
| Permissions | 5 scope rules with actorType logic | "org/team/private scoping" | YES — actorType enum missing |
| Enums | status: open/in_progress/done/archived | "various statuses" |
Установить dotfile-hone в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл dotfile-hone?
Use when a pipeline DOT file has passed structural validation but may still have flow inefficiencies, spec fidelity gaps, or information loss in prompts. Use after dotfile-audit or dotfile-from-spec when you want to deeply verify a pipeline captures everything from the original spec. Use when prompts might be missing critical domain rules, data models, or invariants.
Как установить скилл dotfile-hone?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл dotfile-hone запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic