agentleFS
bruuuuucebruuuuuce/mana/skills/story-quality/SKILL.md

story-quality

Skill2 starsChanged 4 months agoMITView on GitHub

Evaluates whether an epic or user story has sufficient, balanced detail and is consistent with its sibling stories before development starts.

2 other projects use a version of this.

Adopted by

Most recently taken up by

The file

Show its rules and text

We split this skill into the rules it gives an agent

18 rules. About 0 are common, 16 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈16

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    When the required inputs are available and the team needs a repeatable review.

    line 62
  2. Distinctive:

    Before a human approval gate where missing evidence would slow the team down.

    line 63
  3. Distinctive:

    When a related agent invokes it as one step in a larger workflow.

    line 64
  4. Distinctive:

    Run the consistency dimension only when sibling stories or an epic context are available.

    line 65
  5. Distinctive:

    Do not use it as a replacement for the accountable human owner.

    line 70
  6. Distinctive:

    Do not use it for unrelated files, binary artifacts, or systems outside the approved MCP policy.

    line 71
  7. Distinctive:

    Do not use it after the decision point if the finding can no longer influence the design without rework.

    line 72
  8. Distinctive:

    Do not use it to justify unsafe shortcuts against project rules.

    line 73
  9. Distinctive:

    Consistency: when sibling stories are available, compare business rules and acceptance criteria for internal consistency and feasibility.

    line 96
  10. Very specific:

    Read service-mission.md and domain-glossary.md to evaluate whether the story matches service purpose, uses domain terms correctly, and to …

    line 119
  11. Distinctive:

    When Jira is available, use story text, acceptance criteria, linked context, and relevant comments as requirement evidence.

    line 131
  12. Distinctive:

    Run during the intended lifecycle phase with the full story, context, and linked artifacts available.

    line 136
  13. Distinctive:

    Use the output as evidence for refinement, planning, review, or local implementation decisions.

    line 137
  14. Distinctive:

    Do not use this skill as an autonomous code-changing tool.

    line 142
  15. Distinctive:

    Do not run it with only a title or vague one-line request and treat the result as complete.

    line 143
  16. Distinctive:

    Do not ignore high-severity findings because the output is advisory.

    line 144
  17. Distinctive:

    Do not use it to bypass team, architecture, DBA, security, or reviewer approval.

    line 145
  18. Very specific:

    Follow docs/standards/agent-skill-output-standard.md (Agent And Skill Output Standard) for all generated artifacts.

    line 148

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Story Quality

Purpose

Evaluate story quality along two dimensions before development starts:

  • Depth: detect incomplete or uneven analysis across functional goal, data requirements, validations, external calls, timeout, retry, error behavior, acceptance criteria, and open questions.
  • Consistency: find conflicting rules, duplicated scope, incompatible acceptance criteria, inconsistent terminology, and mismatched assumptions across related stories in the same epic.

This skill exists to reduce delivery churn by making a narrow, reusable judgement explicit. It produces structured artifacts and recommendations; it does not perform broad autonomous actions.

When To Use It

  • During the lifecycle phase indicated by the tags and preferred runner.
  • When the required inputs are available and the team needs a repeatable review.
  • Before a human approval gate where missing evidence would slow the team down.
  • When a related agent invokes it as one step in a larger workflow.
  • Run the consistency dimension only when sibling stories or an epic context are available; otherwise report depth findings and note the missing comparison evidence.

When Not To Use It

  • Do not use it as a replacement for the accountable human owner.
  • Do not use it for unrelated files, binary artifacts, or systems outside the approved MCP policy.
  • Do not use it after the decision point if the finding can no longer influence the design without rework.
  • Do not use it to justify unsafe shortcuts against project rules.

Inputs

  • epic
  • story
  • sibling_stories
  • acceptance_criteria
  • linked_documentation
  • goal_contract

Outputs

  • story_quality_report
  • conflicts
  • open_questions
  • missing_details
  • clarification_questions

Execution Logic

  1. Normalize domain terms from the Jira story, acceptance criteria, linked context, and fallback story-pack when available.
  2. Depth: parse the story into requirement domains; rate each domain as high, medium, low, or missing; flag asymmetry where one area is detailed but another critical area is vague.
  3. Consistency: when sibling stories are available, compare business rules and acceptance criteria for internal consistency and feasibility; detect conflicting defaults, enum values, statuses, ownership, missing requested behavior, and unrequested scope.
  4. Group conflicts and gaps by blocking severity.
  5. Generate clarification questions before development starts.

Decision Rules

  • blocker: unresolved high-risk issue, missing critical input, unsafe database/security/architecture condition, or untestable requirement that prevents responsible delivery.
  • warning: incomplete evidence, medium-risk design concern, missing non-critical test, or ambiguity that can be accepted by the owner.
  • info: observation useful for reviewers, implementation, or future learning.
  • Skipping the consistency dimension because sibling stories are unavailable is a warning, not silent omission.

Failure Modes

  • Missing or stale input artifacts can produce false negatives.
  • Repository search can miss dynamically configured flows or generated code.
  • MCP access restrictions can prevent full validation; report the access gap explicitly.
  • AI output can be incomplete; human review remains mandatory.

Required Human Review

The owner role BA / Team Leader reviews blocker and warning findings. High-risk security, database, concurrency, or architecture findings require explicit approval before implementation or merge.

Service Context Layer

Read service-mission.md and domain-glossary.md to evaluate whether the story matches service purpose, uses domain terms correctly, and to detect terminology drift and contradictory business assumptions.

Missing context files should be reported as warnings. A violation of .mana/global/engineering-guards.md must be treated as a blocker or routed to the accountable owner for explicit approval.

Interaction With Codex

Codex should run this skill for repository-level analysis, planning, validation, documentation, and report generation. Codex should prefer proposed patches and written findings over destructive edits.

Interaction With Junie

Junie may use the output inside the IDE to implement one approved task at a time, generate local tests, or apply local fixes. Junie must not change files outside the approved impact map without asking.

Interaction With MCP

MCP access must be least-privilege. Read-only access is preferred. Writes, destructive operations, external comments, database execution, or ticket updates require human approval and audit logging. When Jira is available, use story text, acceptance criteria, linked context, and relevant comments as requirement evidence. If Jira is unavailable, report the gap and use the documented Markdown fallback instead of inferring requirements.

Correct Usage Examples

  • Run during the intended lifecycle phase with the full story, context, and linked artifacts available.
  • Use the output as evidence for refinement, planning, review, or local implementation decisions.
  • Escalate blocker findings to the named human owner before continuing.
  • Store the generated report with the story or branch artifacts so later agents can reuse it.

Incorrect Usage Examples

  • Do not use this skill as an autonomous code-changing tool.
  • Do not run it with only a title or vague one-line request and treat the result as complete.
  • Do not ignore high-severity findings because the output is advisory.
  • Do not use it to bypass team, architecture, DBA, security, or reviewer approval.

Output Standard

Follow docs/standards/agent-skill-output-standard.md (Agent And Skill Output Standard) for all generated artifacts. Use templates/standard-agent-skill-report.template.md when no more specific template exists.

Internal reasoning must use compact caveman mode: terse fragments, evidence-first notes, no long narrative, and no private chain-of-thought in final artifacts. Maintain a context budget: keep a short working summary with objective, base branch or PR, issue keys, workspace path, checked evidence, open hypotheses, discarded hypotheses, and next checks instead of accumulating raw transcripts, full diffs, repeated file dumps, or copied tool output.

Diagram

flowchart TD
    Inputs[Required inputs] --> Skill[story-quality]
    Skill --> Findings[Findings by severity]
    Skill --> Artifacts[Structured outputs]
    Findings --> HumanGate[Human review gate]
    Artifacts --> NextAgent[Downstream agent or workflow]

Example Output

skill: story-quality
status: warning
summary: "Analysis completed with one blocker candidate and two warnings."
findings:
  - severity: warning
    area: "example"
    message: "A required detail or verification point is incomplete."
    recommended_action: "Clarify with the owner and update the related artifact."
outputs:
  - story_quality_report
  - conflicts
  - open_questions
  - missing_details
  - clarification_questions
human_review_required: true

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.