Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
## Unreleased

### Added (flow diagram)
- `docs/linear-issue-craft-flow.drawio`: a draw.io flowchart of the skill's core path (classify the archetype, draft, clear the gates or the headless save-hook, then file), built and render-verified with the drawio skill. Light theme, drawio-native palette, legend included. Linked from the README.
- `docs/linear-issue-craft-flow.drawio`: a draw.io flowchart of the skill's core path (classify the archetype, draft, clear the gates or the headless save-hook, then file), built and render-verified with the drawio skill. Light theme, drawio-native palette, legend included. Embedded in the README as a rendered PNG preview (`docs/linear-issue-craft-flow.png`), since GitHub does not render `.drawio` inline.

### Added (save-hook: weld the boundary)
- `hooks/validate-issue-on-save.sh`: a Claude Code PreToolUse hook for `mcp__linear__save_issue` that runs the Gate-1 validator at the tool boundary, so the check cannot be skipped on the headless batch-filing path (a PreToolUse hook fires for subagent tool calls too). Create-only (an update with an `id` is left alone, so the pre-Anchor corpus is never orphaned); build-lane scoped (governance labels `human`/`eval` exempt); `observe` by default (logs would-blocks, allows) and `enforce` on an operator flip (denies with the validator's re-fileable output via `permissionDecision: deny`). Fails open on any unexpected input. On a create, a missing or prose-shaped Anchor is promoted from WARN to a block. `hooks/README.md` documents install + the operator-owned enforce flip (gated on a clean corpus replay); `hooks/test_hook.sh` covers the decision matrix (7 cases).
Expand Down
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@ skill/

## Flow diagram

`docs/linear-issue-craft-flow.drawio` is a draw.io flowchart of the skill's core path: classify the archetype (epic / story / hardening / task, or decompose), draft, clear the gates (Gate 1 validator, then Gate 2 and Gate 3 interactively, or the save-hook in headless mode), then file. Light theme, drawio-native palette, with a legend. Open it at [app.diagrams.net](https://app.diagrams.net) or with the draw.io VS Code extension.
![Linear Issue Craft skill flow](docs/linear-issue-craft-flow.png)

The flowchart above maps the skill's core path: classify the archetype (epic / story / hardening / task, or decompose), draft, clear the gates (Gate 1 validator, then Gate 2 and Gate 3 interactively, or the save-hook in headless mode), then file. Light theme, drawio-native palette, with a legend. The source is `docs/linear-issue-craft-flow.drawio` (the PNG is a rendered preview); edit it at [app.diagrams.net](https://app.diagrams.net) or with the draw.io VS Code extension.

## The archetypes

Expand Down
Binary file added docs/linear-issue-craft-flow.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading