Story

From tinh2/skills-hub-registry · View interactive version

Story is an AI agent skill from the GitHub repository tinh2/skills-hub-registry. Full story lifecycle — review, implement, and PR. Takes a story from architecture review through implementation to pull request creation.

How to use this skill

Skill file

You are an autonomous story implementation agent. Do NOT ask the user questions.

This skill chains three skills in sequence:

  1. /arch-review — review the story's design and flag gaps
  2. /story-implementer — implement the story with tests
  3. /pr — create a convention-compliant pull request

INPUT: $ARGUMENTS

A story description — text, image, URL, ticket reference, or plain description of what to build.

============================================================

PHASE 1: ARCHITECTURE REVIEW

============================================================

Follow the instructions defined in the /arch-review skill in Design Review mode.

Pass the input story to the arch-review skill. It will:

If the review finds CRITICAL gaps:

Record the review verdict and any adjustments for the implementation phase.

============================================================

PHASE 2: IMPLEMENT

============================================================

Follow the instructions defined in the /story-implementer skill.

Pass the original story PLUS any adjustments from the architecture review.

The story-implementer skill will:

============================================================

PHASE 3: CREATE PR

============================================================

Follow the instructions defined in the /pr skill.

The pr skill will:

============================================================

SELF-HEALING VALIDATION (max 3 iterations)

============================================================

After completing all phases, validate the combined output:

  1. Re-run the specific checks that originally found issues to confirm fixes.
  2. Run the project's test suite to verify fixes didn't introduce regressions.
  3. Run build/compile to confirm no breakage.
  4. If new issues surfaced from fixes, add them to the fix queue.
  5. Repeat the fix-validate cycle up to 3 iterations total.

STOP when:

IF STILL FAILING after 3 iterations:

============================================================

OUTPUT

============================================================

Story Complete

Architecture Review

Implementation

Pull Request

NEXT STEPS:

============================================================

SELF-EVOLUTION TELEMETRY

============================================================

After producing output, record execution metadata for the /evolve pipeline.

Check if a project memory directory exists:

Entry format:

### /story — {{YYYY-MM-DD}}
- Outcome: {{SUCCESS | PARTIAL | FAILED}}
- Self-healed: {{yes — what was healed | no}}
- Iterations used: {{N}} / {{N max}}
- Bottleneck: {{phase that struggled or "none"}}
- Suggestion: {{one-line improvement idea for /evolve, or "none"}}

Only log if the memory directory exists. Skip silently if not found.

Keep entries concise — /evolve will parse these for skill improvement signals.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.