From mycelium
Implements reflexion loop for self-correcting deliverables: implement, validate (tests/security/accessibility), self-critique issues, retry up to 3 iterations. Ensures quality in code/content/AI/services.
How this skill is triggered — by the user, by Claude, or both
Slash command
/mycelium:reflexionThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Self-correcting implementation loop from the n-trax pattern.
Self-correcting implementation loop from the n-trax pattern.
Step 1: Implement
Step 2: Validate
Step 3: Self-Critique Review the implementation against (select items relevant to product_type):
Step 4: Decide
When max iterations reached without full resolution:
The validate step in the reflexion loop should use the appropriate verification mode:
eslint, mypy, yamllint, YAML schema validation against ${CLAUDE_PLUGIN_ROOT}/engine/canvas-guidance.ymlpytest, npm test, cargo clippy, OWASP dependency check/mycelium:devils-advocate, /mycelium:usability-check, auto-dogfood evaluation, design reviewOrder: Always attempt rules-based → computational → inferential. Only escalate to the next mode when the previous mode cannot verify the property in question.
Source: Trivedy (Anatomy of an Agent Harness, LangChain blog). Three-mode taxonomy adapted from Böckeler (Harness Engineering, martinfowler.com — computational vs inferential distinction). Note: harnesses continue to matter even as models improve — they engineer systems around model intelligence, not just patch deficiencies.
npx claudepluginhub haabe/mycelium --plugin myceliumApplies adversarial fresh-context review to non-trivial decisions in code. Use when correctness matters more than speed, in unfamiliar code, or for high-stakes operations.
Runs a clean-context blind-verification loop where a sub-agent verifies the main agent's response against user requirements, revising until no blockers remain. Use when the user explicitly asks for verification or review.
Subjects non-trivial decisions to a fresh-context adversarial review before they stand. Use when correctness matters more than speed, in unfamiliar code, or for high-stakes operations.