mj-agent-doc-author

Creates Meta v2.1-compliant mj-agent documents from scope analysis through validation.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Drafting governance-compliant documentation (GUIDE, RUNBOOK, ADR, SPEC, and more) in the mj-agent repository requires knowing 12 document types, 9 templates, track assignment rules, directory placement rules, and naming conventions. This Skill automates that entire authoring workflow so each document lands in the right directory with the right frontmatter, filename, and template. ## Core Features & Use Cases - Track-aware dispatch: Automatically assigns each document to the code, agent, engineering-workflow, or shared track using the Meta v2.1 path-to-track decision tree. - Full authoring pipeline: Covers ADR/SPEC prechecks, directory placement, template selection, filename construction with glob-based conflict checks, content generation verified against actual code, and handoff to doc validation. - HITL guardrails for in-source docs: Enforces mandatory human review (Q-B1) before writing SKILL.md or prompt files under src/mj_agent, routing changes through runtime propose-diff flows. - Use Case: After a Stage 6 planning session decides a new ADR is needed, invoke this Skill to scan existing ADR numbers, pick the next number, apply TEMPLATE_ADR.md, and produce a draft document ready for validation. ## Quick Start Ask the agent to draft an ADR for the LLM provider abstraction decision in the mj-agent repository and validate it afterward.

Frequently Asked Questions about mj-agent-doc-author

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

FAQPage Schema
How do I write an ADR document in the mj-agent repository?▼

Invoke this Skill after the decision scope is clear. It scans docs/adr/ for the highest existing ADR number, assigns the next zero-padded number, applies TEMPLATE_ADR.md, and generates the draft with required frontmatter including the track field.

What document types can this Skill create?▼

It creates 12 types: GUIDE, RUNBOOK, ADR, SPEC, POSTMORTEM, STANDARD, ISSUE, ASSESSMENT, plus in-source SKILL, PROMPT, and CONTRACT documents. Each type maps to a specific template, directory, and naming convention defined by Meta v2.1.

How does track-aware dispatch decide where a document belongs?▼

It applies the Meta v2.1 section 4.3.1 path-to-track decision tree: paths under src/mj_agent/skills or prompts map to agent, other src paths to code, .claude paths to engineering-workflow, and everything else defaults to shared with justification.

Can this Skill directly edit SKILL.md files under src/mj_agent?▼

No. Changes to in-source SKILL.md or prompt files trigger the mandatory Q-B1 human review checkpoint. The change must first be proposed as a diff through the mj-agent-runtime skills, reviewed, and accepted before writing to disk.

When should I not use this Skill?▼

Do not use it for documentation gap analysis (use mj-agent-doc-plan), validating already-written documents (use mj-agent-doc-validate), or authoring full Plan bodies (use mj-agent-flow-plan). It only drafts one specific document after type and scope are decided.