agentleFS
CodeCaroSCodeCaroS/MythOs_Aegis/.agents/skills/ux-logic-loop/SKILL.md

ux-logic-loop

Skill0 starsChanged 3 months agoApache-2.0View on GitHub

Systematically inventory features from code, derive testable user stories, persist them in a structured matrix, and run a continuous test-fix-retest loop until UX, logic, and integration issues are resolved or blocked. Use when you need an autonomous audit of user-facing behavior across roles, states, permissions, and edge cases.

The file

We split this skill into the rules it gives an agent

12 rules. About 0 are common, 11 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈11

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use this skill to turn a codebase into a persistent, testable user-story loop.

    line 18
  2. Distinctive:

    Write the stories into a persistent, machine-readable test matrix.

    line 25
  3. Distinctive:

    Keep the loop state in machine-readable files.

    line 52
  4. Distinctive:

    Use a CSV or compatible table with at least:

    line 64
  5. Very specific:

    Only mark a story PASSED after:

    line 81
  6. Distinctive:

    Test high-impact, high-risk work first:

    line 91
  7. Distinctive:

    Use the lowest sensible test level first.

    line 103
  8. Distinctive:

    Prefer a browser test for end-to-end flows, a unit test for pure logic, and integration tests for services, APIs, permissions, and …

    line 104
  9. Distinctive:

    Check reload, navigation, keyboard interaction, focus, slow requests, error responses, and repeated actions.

    line 105
  10. Distinctive:

    Do not weaken assertions, hide errors, skip tests, or mark a fix complete without retesting.

    line 106
  11. Distinctive:

    Document blocked scenarios with the blocker, needed decision, affected stories, and safe alternatives.

    line 107
  12. Distinctive:

    When the loop is done, summarize:

    line 128

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 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

UX & Logic Loop

Use this skill to turn a codebase into a persistent, testable user-story loop. This owns the persistent story matrix and the test-fix-retest loop. If visual-flow-storyboard has already mapped the flows, reuse its output as the inventory source instead of re-deriving flows from code.

Core workflow

  1. Inspect the repository first.
  2. Build a feature inventory from the actual code.
  3. Derive user stories for happy path, validation, empty state, loading, error, recovery, permission, persistence, concurrency, boundary, destructive, accessibility, and responsive behavior.
  4. Write the stories into a persistent, machine-readable test matrix.
  5. Pick the highest-priority ready story.
  6. Reproduce the behavior as a real user.
  7. Fix the root cause, not just the symptom.
  8. Retest the original story and nearby regressions.
  9. Record the finding, status, and coverage.
  10. Continue until the matrix is exhausted or a real blocker is reached.

First repository pass

Inspect, in order when available:

  • AGENTS.md
  • README.md
  • CONTRIBUTING.md
  • architecture docs
  • existing skills
  • test config
  • coding standards
  • security rules
  • design-system docs
  • deployment and environment rules

Then document the discovered framework, runtime, start commands, test commands, main modules, roles, auth, permissions, persistence, external dependencies, tests, and available browser or UI tools.

Persistent working files

Keep the loop state in machine-readable files. Prefer these names unless the repo already has a stricter convention:

  • .agents/ux-logic-loop/session-state.md
  • .agents/ux-logic-loop/feature-inventory.md
  • .agents/ux-logic-loop/user-stories.csv
  • .agents/ux-logic-loop/findings.md
  • .agents/ux-logic-loop/test-runs.md
  • .agents/ux-logic-loop/coverage.md
  • .agents/ux-logic-loop/bugs/

Story matrix minimum fields

Use a CSV or compatible table with at least:

id, area, feature, role, precondition, user_story, scenario, expected_result, test_type, risk, dependencies, status, last_tested, finding_id, automated_test, notes

Status flow

  • DISCOVERED
  • READY
  • BLOCKED
  • TESTING
  • FAILED
  • FIXING
  • RETEST
  • PASSED
  • SKIPPED
  • NEEDS_REVIEW

Only mark a story PASSED after:

  • the original failure was reproduced
  • the cause was understood
  • the fix was implemented
  • the original test passed again
  • relevant regression tests passed

Prioritization

Test high-impact, high-risk work first:

  1. Security and permission bugs
  2. Data loss
  3. Wrong business logic
  4. Blocking main flows
  5. Missing error handling
  6. UX problems in common flows
  7. Cosmetic issues

Testing rules

  • Use the lowest sensible test level first.
  • Prefer a browser test for end-to-end flows, a unit test for pure logic, and integration tests for services, APIs, permissions, and transactions.
  • Check reload, navigation, keyboard interaction, focus, slow requests, error responses, and repeated actions.
  • Do not weaken assertions, hide errors, skip tests, or mark a fix complete without retesting.
  • Document blocked scenarios with the blocker, needed decision, affected stories, and safe alternatives.

Findings

Give each finding a stable ID and record:

  • title
  • category
  • severity
  • affected stories
  • starting state
  • reproduction steps
  • actual behavior
  • expected behavior
  • root cause
  • fix
  • verification
  • automated test

Final report

When the loop is done, summarize:

  • analyzed features
  • created user stories
  • executed tests
  • passed, failed, and blocked stories
  • fixed findings
  • open findings
  • remaining risks
  • not tested areas
  • next steps

Shared output profile

Compose the execution profile from output-templates. Report story status, discovered findings, fixes, test evidence, remaining coverage, and blockers. Preserve stricter domain rules above, omit empty components, and never fill a component with invented evidence.

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.