skills/cygnusfear/4-step-program/SKILL.md
Coordinator workflow for orchestrating dockeragents through fix-review-iterate-present loop. Use when delegating any task that produces code changes. Ensures agents achieve 10/10 quality before presenting to human.
npx skillsauth add aiskillstore/marketplace 4-step-programInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
A coordinator workflow for orchestrating dockeragents. You delegate, they implement. You enforce the loop until quality is achieved.
Every code review MUST be posted to GitHub as a PR comment. This is NOT optional.
┌─────────────────────────────────────────────────────┐
│ │
│ ┌──────────┐ ┌──────────┐ ┌──────────────┐ │
│ │ 1. FIX │───►│ 2. REVIEW│───►│ 3. 10/10? │ │
│ │ (agent) │ │ (agent) │ │ (you check) │ │
│ └──────────┘ └──────────┘ └──────┬───────┘ │
│ ▲ │ │
│ │ │ │
│ │ NO │ YES │
│ └─────────────────────────────────┤ │
│ ▼ │
│ ┌──────────────┐ │
│ │ 4. PRESENT │ │
│ │ (you + URLs) │ │
│ └──────────────┘ │
│ │
└─────────────────────────────────────────────────────┘
Assign the implementation task to a dockeragent:
assign_task(agent_id, task_description)
The task description MUST include:
Skill(code-reviewer) and POST to GitHub when doneCRITICAL: 100% Issue Coverage Requirement
When delegating, you MUST:
gh issue view <number>Example delegation:
"Fix the authentication bug in
src/auth.ts(Issue #45).Requirements from issue (ALL must be implemented):
- Session token expires correctly after 24 hours
- Refresh token works when session token expires
- Error message shown when both tokens expire
- User redirected to login page on auth failure
Success: ALL 4 requirements implemented, tests pass, bug no longer reproducible.
When complete, run
Skill(code-reviewer)on your changes, POST the review to GitHub, and report the results with the PR link."
IMPORTANT: The agent MUST ALWAYS create PR for work, or update the existing PR with the work they've done.
CRITICAL: PR Must Link and Close Issues
When creating PR, agent MUST:
Closes #X or Fixes #X in PR body for each issue being addressedgh pr view --json closingIssuesReferencesExample PR body must include:
## Related Issues
- Closes #45 - Auth token expiration bug
- Related to #40 - Auth system improvements
The dockeragent MUST invoke the code-reviewer skill on their own work:
Skill(code-reviewer)
This triggers the 6-pass ultra-critical methodology:
The review is NOT complete until it is posted to GitHub as a PR review/comment.
The code-reviewer skill will:
mcp__github__create_pull_request_reviewThe human needs to see the review on the PR page. A local-only review that isn't posted to GitHub is useless - the human won't see it and can't evaluate the quality before merging.
Delegation must include:
"After reviewing, POST your review to GitHub. The human must be able to see your review on the PR page."
The agent reports back with:
IMPORTANT: The agent MUST ALWAYS post the Review as comment on the PR.
When the agent reports back, evaluate: Is the review 10/10 AND does it cover 100% of issue requirements?
BEFORE checking review quality, verify the implementation covers ALL requirements from the original issue/task:
Identify ALL requirements from the original issue:
gh issue view <number>Verify each requirement is implemented:
Coverage must be 100%:
A 10/10 review means ALL of the following:
Send the agent back to fix:
send_message_to_agent(agent_id, "Review shows X suggestions. Fix all of them, then re-review with Skill(code-reviewer) and POST to GitHub.")
→ Loop back to Step 1
→ Proceed to Final Coverage Gate
MANDATORY: Before presenting to human, perform one final 100% coverage verification using LINE-BY-LINE requirement checking.
# Get ALL checklist items from issue
gh issue view <number> --json body --jq '.body' | grep -E "^\- \["
# Also check for requirements in prose (not just checkboxes)
gh issue view <number>
Don't rely on memory - actually parse the issue text.
MANDATORY - You MUST create this exact table:
## Issue #X - Full Requirements Check
| Requirement | PR Status | Evidence |
|-------------|-----------|----------|
| [exact text from issue] | ✅ | `file.ts:line` - [implementation] |
| [exact text from issue] | ❌ MISSING | Not found in PR |
| [exact text from issue] | ⚠️ PARTIAL | `file.ts:line` - [what's missing] |
| [exact text from issue] | ⚠️ MANUAL | Requires [runtime/editor] |
Status meanings:
Implemented (✅ only) / Total Requirements = Coverage %
Be brutally honest:
**Honest Assessment**:
- Coverage: X% (Y of Z requirements fully implemented)
- Missing: [list]
- Partial: [list with gaps]
- Manual: [list items needing runtime/editor]
| Coverage | Action | |----------|--------| | 100% | ✅ Proceed to Step 4 (Present) | | < 100% | ❌ DO NOT PRESENT - Loop back to Step 1 |
send_message_to_agent(agent_id, "FINAL COVERAGE CHECK FAILED.
Issue #X - Full Requirements Check:
| Requirement | Status | Evidence |
|-------------|--------|----------|
| [requirement 1] | ✅ | file.ts:45 |
| [requirement 2] | ❌ MISSING | Not in PR |
| [requirement 3] | ⚠️ PARTIAL | Missing X |
Honest Assessment:
- Coverage: W% (Z of Y requirements)
- Missing: [requirement 2]
- Partial: [requirement 3] - needs X
Implement ALL items marked ❌ or ⚠️, then re-review with Skill(code-reviewer) and POST to GitHub.
Do not return until 100% coverage achieved.")
→ Loop back to Step 1
→ Proceed to Step 4
Report to the human with:
ALWAYS link PR and issue numbers to URLs. This is mandatory.
[PR #243](https://github.com/owner/repo/pull/243) is ready for review. Resolves [Issue #100](https://github.com/owner/repo/issues/100).
PR #243 is ready for review. Resolves Issue #100.
Never write bare PR #42 or Issue #100. ALWAYS include the full clickable URL.
| Anti-Pattern | Why It's Wrong | |--------------|----------------| | Accepting incomplete issue coverage | Issue had 10 requirements, only 8 implemented = NOT DONE. Send back. | | Accepting "mostly done" | Not 10/10 = not done. Send back. | | Skipping PR before review | We need a PR BEFORE review. | | Skipping review step | Every task gets reviewed. No exceptions. | | Reviewing code yourself | You coordinate. Agent reviews with skill. | | Bare PR/issue numbers | URLs are mandatory. Always link. | | Presenting before 10/10 | Loop isn't done. Keep iterating. | | Review not posted to GitHub | TASK FAILS. Human can't see local-only reviews. Must be on PR page. | | Accepting completion without GitHub post | Send agent back. Review isn't done until posted. |
EXECUTIVE SUMMARY: ANY SCORE BELOW 10/10 → DO NOT APPROVE, DO NOT PRESENT EXECUTIVE SUMMARY: ANY COVERAGE BELOW 100% → DO NOT APPROVE, DO NOT PRESENT
❌ WRONG:
"Issue #45 requested 5 features. Agent implemented 4 of them.
Review is 10/10. Ready to present!"
"The main bug is fixed. The edge case mentioned in the issue
can be handled in a follow-up. Presenting to human."
"Agent addressed the core requirements. Minor items from the
issue can be done later."
✅ CORRECT:
"Issue #45 has 5 requirements. Agent implemented 4.
Missing: Requirement 5 (handle timeout errors).
Sending agent back: 'Implement requirement 5 from issue #45 -
handle timeout errors as specified in the acceptance criteria.'"
"Review shows 10/10 quality BUT issue coverage is only 80%.
NOT presenting until 100% of issue requirements are implemented."
Why this is wrong: The issue exists because the user needs ALL the requirements. Presenting partial work means the issue is still not fixed. The user will have to open another issue for the missing requirements.
❌ WRONG:
"CI is green and all tests pass. Ready to merge!"
"Build successful, linting passed. Good to go!"
✅ CORRECT:
"CI passes. Now awaiting 10/10 review with all suggestions fixed before presenting to human."
Why this is wrong: CI passing is necessary but NOT sufficient. The loop requires a 10/10 review with ZERO suggestions. CI green + review suggestions = NOT DONE.
❌ WRONG:
"Review: 82/100. Overall solid implementation. APPROVED."
"Review score: 9/10. Verdict: Ready to merge."
"Great work! 95/100, approved with minor notes."
✅ CORRECT:
"Review: 82/100. NOT APPROVED. Agent must fix all 18 points before re-review."
"Review: 9/10. NOT APPROVED. Loop back to Step 1 until 10/10."
Why this is wrong: ANY score below 10/10 means there are issues. Issues mean NOT DONE. Send the agent back. The loop continues until ZERO suggestions remain.
❌ WRONG:
"Agent completed the work but needs push access to main."
"Changes ready, please cherry-pick commit abc123 to main."
"Work done locally, someone needs to push it."
✅ CORRECT:
"Agent creates branch → Agent creates PR → Review posted as PR comment → 10/10 achieved → Present PR link to human"
Why this is wrong: Agents ALWAYS create a new branch and open a PR. The review goes ON the PR as a comment. No cherry-picking, no manual pushes, no special access needed. The PR IS the deliverable.
❌ WRONG:
"Good news! Everything is already done! See PR #243 and #244."
"Fixed in PR #100, related to issue #50."
"All tasks complete - check PRs #10, #11, #12."
✅ CORRECT:
"All tasks complete:
- [PR #243](https://github.com/owner/repo/pull/243) - Auth fix
- [PR #244](https://github.com/owner/repo/pull/244) - Test coverage
Related: [Issue #50](https://github.com/owner/repo/issues/50)"
Why this is wrong: Bare numbers are not clickable. The human must be able to click directly to the PR. ALWAYS format as [PR #N](full-url).
❌ WRONG:
"Open items:
- #535 Nix CI implementation (orphan spacetime branch)
- #102 Database migration pending
- Issue #88 still needs review"
✅ CORRECT:
"Open items:
- [#535](https://github.com/owner/repo/issues/535) - Nix CI implementation (orphan spacetime branch)
- [#102](https://github.com/owner/repo/issues/102) - Database migration pending
- [Issue #88](https://github.com/owner/repo/issues/88) - Still needs review"
Why this is wrong: Every reference to a PR or issue MUST be a clickable link. No exceptions. The human should never have to manually construct a URL.
Agents posting reviews to GitHub SHOULD include Mermaid diagrams when helpful.
Reviews and PRs benefit from visual representation:
| Change Type | Diagram Recommendation |
|-------------|------------------------|
| Bug fix with flow change | flowchart showing before/after |
| New API endpoint | sequenceDiagram of request flow |
| State handling change | stateDiagram-v2 |
| Component refactor | flowchart with component relationships |
## Review Summary
The token refresh implementation correctly handles expiration.
### New Flow
```mermaid
sequenceDiagram
Client->>Server: Request (expired token)
Server-->>Client: 401
Client->>Server: POST /refresh
Server-->>Client: New token
Client->>Server: Retry request
Server-->>Client: 200 Success
```
**Score: 10/10** - All requirements met, clean implementation.
1. DELEGATE → assign_task with ALL issue requirements + review + GitHub posting instruction
2. WAIT → Agent fixes + runs Skill(code-reviewer) + POSTS to GitHub
3. CHECK → TWO gates must pass:
GATE 1: Is 100% of issue/task requirements implemented?
NO → send_message_to_agent with missing requirements, go to 2
GATE 2: Is report 10/10 with ZERO suggestions? Is review on PR page?
NO → send_message_to_agent, go to 2
YES → go to 3.5
3.5 FINAL GATE → Re-verify 100% coverage one last time before presenting
NO (< 100%) → send_message_to_agent, go to 1
YES (100%) → go to 4
4. PRESENT → Tell human + CONFIRM 100% coverage + LINK the PR URL + Mermaid diagrams (if complex)
Remember: You don't implement. You orchestrate the loop until 100% coverage AND 10/10. Final gate catches any missed requirements.
development
Apple Human Interface Guidelines for content display components. Use this skill when the user asks about charts component, collection view, image view, web view, color well, image well, activity view, lockup, data visualization, content display, displaying images, rendering web content, color pickers, or presenting collections of items in Apple apps. Also use when the user says how should I display charts, what's the best way to show images, should I use a web view, how do I build a grid of items, what component shows media, or how do I present a share sheet. Cross-references: hig-foundations for color/typography/accessibility, hig-patterns for data visualization patterns, hig-components-layout for structural containers, hig-platforms for platform-specific component behavior.
tools
Automate HelpDesk tasks via Rube MCP (Composio): list tickets, manage views, use canned responses, and configure custom fields. Always search tools first for current schemas.
testing
Expert Haskell engineer specializing in advanced type systems, pure functional design, and high-reliability software. Use PROACTIVELY for type-level programming, concurrency, and architecture guidance.
tools
GraphQL gives clients exactly the data they need - no more, no less. One endpoint, typed schema, introspection. But the flexibility that makes it powerful also makes it dangerous. Without proper controls, clients can craft queries that bring down your server. This skill covers schema design, resolvers, DataLoader for N+1 prevention, federation for microservices, and client integration with Apollo/urql. Key insight: GraphQL is a contract. The schema is the API documentation. Design it carefully.