Skip to content

Add agentic workflow rule and verification eval#25

Merged
HartBrook merged 1 commit into
mainfrom
agentic-workflow-rule
Jun 8, 2026
Merged

Add agentic workflow rule and verification eval#25
HartBrook merged 1 commit into
mainfrom
agentic-workflow-rule

Conversation

@HartBrook

Copy link
Copy Markdown
Owner

Summary

The starter framework described what good code looks like but said almost nothing about how Claude should operate during agentic work. This adds that missing declarative layer.

  • agentic-workflow.md — a new global starter rule (applies to all files): verify before claiming done, plan large changes, scope discipline, match surrounding code, and confirm irreversible/outward-facing actions.
  • workflow-verification.yaml — a matching eval (4 tests) so the standard is behaviorally checked, not just documented — in keeping with staghorn's eval-driven approach.

Changes

  • internal/starter/rules/agentic-workflow.md — new rule
  • internal/starter/evals/workflow-verification.yaml — new eval: recommends verification, scope discipline, surfacing tangents, honest reporting
  • internal/starter/rules_test.go — register the rule in both expectation lists
  • README.md — 25 → 26 starter evals, new Workflow category row
  • CHANGELOG.md — entry under [Unreleased]

Testing

  • go build ./... clean
  • go test ./... passes
  • New eval validated through staghorn's own LoadStarterEvals loader (parses, 4 tests, validation passes)

Follow-ups (intentionally out of scope)

  • An operational verify skill that runs the workflow (build/tests → honest report) as a counterpart to the rule.
  • An enforcement layer: staghorn currently bootstraps rules/commands/skills/evals/languages/templates but has no settings.json hooks/permissions bootstrap. Deterministic enforcement (format-on-stop, block-secret-commit, least-privilege) would be a new capability and warrants its own PR.

Adds a global starter rule covering how Claude should operate during
agentic work — not just what good code looks like: verify before claiming
done, plan large changes, scope discipline, match surrounding code, and
confirm irreversible actions.

Pairs the rule with a workflow-verification eval (4 tests) so the standard
is behaviorally checked, in keeping with staghorn's eval-driven approach.

- internal/starter/rules/agentic-workflow.md: new global rule
- internal/starter/evals/workflow-verification.yaml: matching eval
- rules_test.go: register the rule in expectation lists
- README.md: 25 -> 26 evals, add Workflow category
- CHANGELOG.md: entry under [Unreleased]
@HartBrook HartBrook merged commit 644d299 into main Jun 8, 2026
4 checks passed
HartBrook added a commit that referenced this pull request Jun 8, 2026
Move the unreleased entries (agentic-workflow rule + verification eval
from #25, verify skill from #27) into a dated 0.9.0 section and update the
compare links. Minor bump: all changes are new backward-compatible
starter content.

The v0.9.0 tag pushed after merge triggers the goreleaser release.
HartBrook added a commit that referenced this pull request Jun 8, 2026
Move the unreleased entries (agentic-workflow rule + verification eval
from #25, verify skill from #27) into a dated 0.9.0 section and update the
compare links. Minor bump: all changes are new backward-compatible
starter content.

The v0.9.0 tag pushed after merge triggers the goreleaser release.
HartBrook added a commit that referenced this pull request Jun 8, 2026
* Add verify starter skill

Adds a runnable skill that operationalizes the agentic-workflow rule's
"verify before claiming done": it discovers the project's own build and
test commands, runs them, observes the actual output, and reports the
result honestly rather than asserting success from inspection.

Unlike the read-only starter skills, verify includes Bash so it can
actually run the checks. Skips checks the project doesn't have instead of
inventing commands.

- internal/starter/skills/verify/SKILL.md: new skill
- skills_test.go: register verify in expectation list
- README.md: 3 -> 4 starter skills
- CHANGELOG.md: entry under [Unreleased]

* Stamp v0.9.0 release in changelog

Move the unreleased entries (agentic-workflow rule + verification eval
from #25, verify skill from #27) into a dated 0.9.0 section and update the
compare links. Minor bump: all changes are new backward-compatible
starter content.

The v0.9.0 tag pushed after merge triggers the goreleaser release.

* Update CHANGELOG.md

Co-authored-by: Will Pike <6687499+pike00@users.noreply.github.com>

* verify skill: also consult project docs (README, CONTRIBUTING, TESTING) for commands

A project's canonical build/test commands are often documented in prose,
not just in config files. Direct the skill to read those and treat a
documented command as authoritative.

---------

Co-authored-by: Will Pike <6687499+pike00@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant