mj-agent-flow-implement

Enforces red-green-refactor, root-cause-first, and fresh-evidence coding methodology for mj-agent Stage 8 implementation.

1|Updated Mar 4, 2026
One-click install
npx skills add https://github.com/MJ-AgentLab/mj-agent --skill mj-agent-flow-implement-mj-agentlab
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: mj-agent-flow-implement
Source: https://github.com/MJ-AgentLab/mj-agent/tree/main/.claude/skills/mj-agent-flow-implement
Command: npx skills add https://github.com/MJ-AgentLab/mj-agent --skill mj-agent-flow-implement-mj-agentlab

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? It prevents undisciplined coding in the mj-agent project by enforcing HITL Stage 8 methodology: test-first behavior changes, root-cause bug fixes instead of symptom patches, fresh evidence before claiming completion, and strict handling of the three change flavors (pure code, in-source canonical prompts/skills, infrastructure). ## Core Features & Use Cases - Red-green-refactor enforcement: Requires writing a failing test, observing RED, implementing minimal code to GREEN, then refactoring for any behavior change. - Root-cause-first debugging: Mandates a stable reproduction path and root-level fixes, explicitly rejecting try-except error swallowing or disabling failing tests. - 3-flavor classification: Routes changes by path — flavor A (pure code with TDD), flavor B (in-source canonical SKILL.md/prompt edits that always trigger a mandatory HITL stop), and flavor C (infra changes requiring healthchecks, docker compose rehearsal, and uv lock). - Use Case: After a Plan and SPEC are confirmed, a developer says "开始编码" and the skill produces a step-by-step coding plan with an implementation trace (red-green log, root-cause log, infra log, fresh evidence) ready for handoff to Stage 10 verification. ## Quick Start Ask the agent to start implementing the confirmed plan using the mj-agent-flow-implement skill so it classifies the change flavor and applies the correct coding methodology.

Frequently Asked Questions about mj-agent-flow-implement

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I enforce test-driven development in an AI coding workflow?▼

Use a red-green-refactor enforcement skill that requires writing a failing test first, observing the RED state, then writing minimal code to reach GREEN before refactoring. This skill operationalizes that discipline as a hard constraint during mj-agent Stage 8 implementation.

How to fix bugs with root-cause analysis instead of patches?▼

Establish a stable reproduction path first, trace the failure back to the actual defect, and fix at the root rather than the symptom. The skill explicitly rejects anti-patterns like try-except error swallowing, disabling failing tests, or unexplained early returns.

When should editing AI agent prompt files require human review?▼

In this workflow, any change to in-source canonical files such as SKILL.md or prompt markdown always triggers a mandatory HITL stop. A reviewer must approve a proposed diff before implementation proceeds, and an EVAL backlog ticket is required in the PR.

What verification is needed before claiming implementation is complete?▼

Fresh evidence is required: rerun relevant tests in the current session and capture new logs or outputs rather than reusing old results. Stale evidence from earlier commits is explicitly rejected because previously passing tests can break on the current diff.

Does this skill run the test command matrix itself?▼

No. It governs coding-process methodology only and hands off to a separate verification skill for Stage 10 command matrix execution. It also does not handle commits, pushes, scope-drift checks, or pre-commit self-review.