Skip to content

Borrow agent-skills patterns: anti-rationalization, red flags, verification, references#15

Merged
z23cc merged 9 commits intomainfrom
fn-136-borrow-agent-skills-patterns-anti
Apr 7, 2026
Merged

Borrow agent-skills patterns: anti-rationalization, red flags, verification, references#15
z23cc merged 9 commits intomainfrom
fn-136-borrow-agent-skills-patterns-anti

Conversation

@z23cc
Copy link
Copy Markdown
Owner

@z23cc z23cc commented Apr 6, 2026

Summary

  • Added anti-rationalization sections (Common Rationalizations, Red Flags, Verification) to 4 core skills: plan, work, impl-review, epic-review
  • Created docs/skill-anatomy.md — standardized skill template specification
  • Created docs/references/ with testing-patterns, security-checklist, performance-checklist
  • Enhanced quality-auditor with five-dimension review framework (Correctness, Readability, Architecture, Security, Performance)
  • Enhanced cross-model-reviewer with severity classification aligned to flowctl parsers
  • Added Phase 2.3 Plan Alignment Check to worker agent
  • Injected Prove-It pattern into flow-code-debug Phase 4
  • Implemented simplify-ignore hook for annotation-based code protection
  • Updated skill-create to enforce new template as universal requirement

Test plan

  • flowctl guard passes (255 tests, lint clean, typecheck clean)
  • flowctl validate --epic fn-136 passes
  • All 4 core skills have Rationalizations + Red Flags + Verification sections
  • docs/skill-anatomy.md exists (169 lines)
  • docs/references/ has 3 checklists
  • hooks/simplify-ignore.sh is executable
  • Codex adversarial review: 2 iterations, findings fixed

🤖 Generated with Claude Code

z23cc added 9 commits April 7, 2026 05:14
- Standardized skill structure: frontmatter, 6 required sections
- Anti-rationalization as core principle (Common Rationalizations table)
- Red Flags and Verification checklist requirements
- Flow-code specifics: flowctl integration, evidence, phase naming
- Writing principles: process > knowledge, specific > general, evidence > assumption
- References flow-code-debug as native exemplar

Task: fn-136-borrow-agent-skills-patterns-anti.1
- New Phase 2.3 between Phase 2 (Implement) and Phase 2.5 (Verify & Fix)
- Checks implementation scope against epic spec for drift
- Minor drift noted in evidence, major drift escalated via Spec conflict protocol
- Lightweight 30-second gate, not a full re-review

Task: fn-136-borrow-agent-skills-patterns-anti.6
Task: fn-136-borrow-agent-skills-patterns-anti.7
- testing-patterns.md: AAA pattern, mock boundaries, Rust test patterns, anti-patterns, prove-it workflow
- security-checklist.md: OWASP Top 10, secret scanning, cargo audit, SQL safety, input validation
- performance-checklist.md: cargo bench/flamegraph, DB anti-patterns, async/await patterns, tokio runtime

Task: fn-136-borrow-agent-skills-patterns-anti.2
- Annotation-based protection: simplify-ignore-start/end markers
- Replaces blocks with BLOCK_<hash> placeholders before model reads
- Expands placeholders back on edit/write, restores on stop
- Supports //, /* */, #, <!-- --> comment styles
- Opt-in only via .claude/settings.json (not hooks.json)
- Documentation in hooks/SIMPLIFY-IGNORE.md

Task: fn-136-borrow-agent-skills-patterns-anti.8
Add Common Rationalizations (table format), Red Flags (observable
symptoms), and Verification (checkbox checklists) sections to:
- flow-code-plan
- flow-code-work
- flow-code-impl-review
- flow-code-epic-review

Follows the pattern established in flow-code-debug SKILL.md.

Task: fn-136-borrow-agent-skills-patterns-anti.3
- Detect missing placeholders before expanding (prevents permanent data loss)
- Keep original backup pristine (never overwrite with expanded version)
- Require comment prefix for annotations (prevents false triggers in strings/docs)
- Document disk-state limitation and missing-placeholder safety
- simplify-ignore: re-append missing blocks instead of full backup restore
- simplify-ignore: clear cache after fallback so next Read re-establishes state
- cross-model-reviewer: align severity schema with flowctl parsers (critical/warning/info)
@z23cc z23cc merged commit 3201c97 into main Apr 7, 2026
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