Skip to content

fix: align workflow to 5-step diagram with research-backed consistency#65

Merged
nullhack merged 12 commits intomainfrom
feat/workflow-5step-consistency
Apr 18, 2026
Merged

fix: align workflow to 5-step diagram with research-backed consistency#65
nullhack merged 12 commits intomainfrom
feat/workflow-5step-consistency

Conversation

@nullhack
Copy link
Copy Markdown
Owner

Summary

Aligns the entire repository to the new 5-step workflow diagram with consistent role names, self-declaration format, and research-backed skill/agent creation.

Changes Made

  • Workflow steps: 6 steps → 5 steps (merged TDD + IMPLEMENT into TDD LOOP)
  • Role names: developersoftware-engineer everywhere
  • Self-declaration format: YES/NOAGREE/DISAGREE (canonical TDD research)
  • Deleted: tdd/SKILL.md and broken gen-tests task (merged into implementation)
  • Research step: Added mandatory Step 0 to create-skill and create-agent skills — agents must research domain best practices before creating new skills/agents
  • Skills aligned: Updated all skill metadata (author, audience), step numbers, load triggers
  • Documentation: README.md and docs/workflow.md now fully consistent

Research Basis

  • Active Listening (Rogers & Farson, 1957) — paraphrase → clarify → summarize
  • Canon TDD (Beck, 2023) — RED → GREEN → REFACTOR minute-scale loop
  • Agent design (OpenAI, Anthropic, 2024-2026) — smallest agent with clear ownership boundaries
  • Lazy loading (Anthropic) — skills loaded on demand, preserve context budget

Files Changed (8 commits)

  • AGENTS.md — 5 steps, software-engineer role, skills table
  • docs/workflow.md — 5-step diagram, AGREE/DISAGREE, updated role tables
  • README.md — 5-step summary, updated skills, aligned commands
  • .opencode/skills/*/SKILL.md — role names, step numbers, self-declaration format
  • pyproject.toml — removed broken gen-tests task
  • New: .opencode/skills/create-agent/SKILL.md — research-backed agent creation

Verification

All commands pass:

  • task lint
  • task static-check
  • task test

Reviewer Notes

This is a consistency-only change. No functional behavior changes — just alignment to the agreed workflow diagram and research-backed best practices.

nullhack added 12 commits April 17, 2026 15:13
- AGENTS.md: rewrite Step 1 phases with 3-session model (Ph1+Ph2),
  move decomposition check to after Ph2 Session 3, add INVEST gate
  to Phase 3, remove final pre-mortem from Phase 4, update TODO.md
  reference, fix Step 2 description (remove 'get PO approval')
- docs/workflow.md: replace Step 1 diagram with full 3-session flow
  including gap-finding labels (CIT/Laddering/CI Perspective),
  template enforcement gates, update Feature File Structure example
- scope/SKILL.md (v4.0): add gap-finding techniques section, add
  active listening protocol (3 levels), rewrite Phase 1+2 around
  3 sessions each with template gates and pre-mortems at correct
  positions, update feature and project-level discovery formats
- docs/features/discovery.md: expand to full 3-session template
- scope/discovery-template.md: expand to full 3-session template
- product-owner.md: update skill description to 3-session model
…diagram

- Add .opencode/skills/design-patterns/SKILL.md with GoF pattern catalogue,
  smell-triggered patterns (8 with Python before/after), SOLID, Object
  Calisthenics, Python Zen, Law of Demeter, CQS, Tell Don't Ask
- Update docs/workflow.md Step 2 box: prerequisites, domain analysis,
  pre-mortem, typed signatures in module structure, informative signature note,
  architecture smell check as hard gate (9 items incl. pattern smells)
- Update docs/workflow.md Step 4 SELF-DECLARE: 24-item first-person format
- Update docs/workflow.md TODO.md structure: first-person declaration format
- Update implementation/SKILL.md: self-declaration format changed from
  checkboxes to 'As a developer I declare [rule] — YES | file:line',
  add 3 design pattern smell items, update reviewer template to match
- Update AGENTS.md: add design-patterns skill row (developer, steps 2+4)
- Update academic_research.md: entry 42 Hexagonal Architecture (Cockburn 2005),
  renumber old 42-49 to 43-50, add bibliography entries 65-66
- Rename developer to software-engineer
- Steps 3+4 merged into TDD Loop (Steps 2-3)
- Steps 5→4 Verify, 6→5 Accept
- Remove gen-tests/gen-id/deprecated/tdd skill
- Self-declaration: AGREE/DISAGREE | file:line, 24 items, once per feature
- Per-test reviewer gate removed
- Add software-engineer.md agent
- Update all skills and agents to match
- Fix YES/NO → AGREE/DISAGREE in self-declaration
- Fix developer → software-engineer role names
- Fix 6 steps → 5 steps
- Remove gen-tests, gen-id references
- Update scope frozen-criteria section
- Fix code-quality redirect to verify
- Fix design-patterns load trigger step 3
- Fix create-skill available skills table
- Delete tdd/ skill (obsolete)
- Fix AGENTS.md: step count, role name, duplicate markers, quality gate heading
- Updated create-skill to v2.0 with research basis (Anthropic, OpenAI)
- Added new create-agent skill following OpenAI/Anthropic best practices
- Added create-agent to AGENTS.md skills table
- create-agent is invoked by human-user (not software-engineer)
- create-skill: Step 0 is now research domain, search best practices, synthesize conclusions, embed as guidance
- create-agent: Same mandatory research step, scoped to agent's domain + domain methodology
- Removed academic citations, embed conclusions as direct actionable guidance
@nullhack nullhack merged commit 3339e2e into main Apr 18, 2026
9 checks passed
@nullhack nullhack deleted the feat/workflow-5step-consistency branch April 18, 2026 08:47
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