AI Dev Workflow
MCP AI Developer Workflow Course Materials and Demos
Installation
npx ai-dev-workflowAsk AI about AI Dev Workflow
Powered by Claude Β· Grounded in docs
I know everything about AI Dev Workflow. Ask me about installation, configuration, usage, or troubleshooting.
0/500
Reviews
Documentation
AI Development Workflow
An agent harness workflow for AI coding tools, enabling controlled requirement intake, planning, gated execution, verification, review, and handoff.
What's Included
| Deliverable | Description |
|---|---|
Requirements MCP Server (src/) | MCP server for fetching requirements, with built-in ONES adapter. Installable via npm. |
Agent Harness Workflow Skill (skills/dev-workflow/) | Self-contained agent harness skill. Install it to run requirement intake, planning, gated execution, verification, review, and handoff. |
Quick Start
1. Install Agent Harness Workflow Skill
npx skills add daguanren21/ai-dev-workflow
Install to a specific agent with -a:
npx skills add daguanren21/ai-dev-workflow -a claude-code
Once installed, AI coding tools will automatically use the dev-workflow harness to govern the full development process.
2. Install For Codex
Codex loads skills from $CODEX_HOME/skills. If CODEX_HOME is not set, the default is ~/.codex.
From this repository:
mkdir -p "${CODEX_HOME:-$HOME/.codex}/skills/dev-workflow"
cp -R skills/dev-workflow/* "${CODEX_HOME:-$HOME/.codex}/skills/dev-workflow/"
For local development, use a symlink instead so Codex picks up edits from this checkout after restart:
mkdir -p "${CODEX_HOME:-$HOME/.codex}/skills"
ln -s "$(pwd)/skills/dev-workflow" "${CODEX_HOME:-$HOME/.codex}/skills/dev-workflow"
Restart Codex after installing or updating the skill.
3. Trigger The Harness
The skill can be triggered automatically when the task looks like AI-assisted development work: requirement intake, issue implementation, task planning, gated execution, verification, review, or handoff.
You can also trigger it explicitly:
Use the dev-workflow harness to implement this requirement: <requirement text or ticket id>
Use the dev-workflow harness. Read ONES-123, write the plan first, then wait for confirmation before implementation.
Use the dev-workflow harness for this GitHub issue: <issue url>
When the harness is active, the agent should announce:
I'm using the dev-workflow harness to drive this development task.
By default, the harness generates user stories and an implementation plan before writing code, then pauses for confirmation. You do not need to repeat "write the plan first" in every prompt. Say so only when you want to bypass that gate.
Expected flow:
Intake -> Context Load -> Normalize -> Harness Plan -> Coverage Validation -> Gated Execution -> Verification -> Review -> Handoff
4. Install MCP Server (Optional)
If you use ONES for requirement management:
npm install -g ai-dev-requirements
Create .requirements-mcp.json in your project root:
{
"sources": {
"ones": {
"enabled": true,
"apiBase": "https://your-org.ones.com",
"auth": {
"type": "ones-pkce",
"emailEnv": "ONES_ACCOUNT",
"passwordEnv": "ONES_PASSWORD"
}
}
},
"defaultSource": "ones"
}
Add to your .mcp.json:
{
"mcpServers": {
"requirements": {
"command": "npx",
"args": ["ai-dev-requirements"],
"env": {
"ONES_ACCOUNT": "${ONES_ACCOUNT}",
"ONES_PASSWORD": "${ONES_PASSWORD}"
}
}
}
}
5. Add Companion MCP Servers (Optional)
Requirements are not limited to ONES. Pair with official MCP servers for GitHub / Jira / Figma:
{
"mcpServers": {
"github": {
"command": "docker",
"args": ["run", "-i", "--rm", "-e", "GITHUB_PERSONAL_ACCESS_TOKEN", "ghcr.io/github/github-mcp-server"],
"env": { "GITHUB_PERSONAL_ACCESS_TOKEN": "${GITHUB_TOKEN}" }
},
"figma": {
"url": "https://mcp.figma.com/mcp"
}
}
}
Supported Requirement Platforms
| Platform | Integration | Description |
|---|---|---|
| ONES | Built-in adapter | Directly supported by this MCP server, OAuth2 PKCE auth |
| GitHub Issues | External MCP | Use github/github-mcp-server |
| Jira | External MCP | Use Atlassian Rovo MCP Server |
This project uses an adapter architecture (
BaseAdapter). To add a new platform as a built-in adapter, extendSourceTypeand implementBaseAdapter.
Agent Harness Workflow Skill
A self-contained AI-assisted agent harness skill that governs the full development lifecycle:
Intake -> Context Load -> Normalize -> Harness Plan -> Coverage Validation -> Gated Execution -> Verification -> Review -> Handoff
The harness follows a feedforward + feedback model: it guides the agent with plans, artifacts, and task boundaries, then uses deterministic gates such as lint, typecheck, build, tests, and review as backpressure before handoff.
Skill directory structure:
skills/dev-workflow/
βββ SKILL.md # Skill entry (YAML frontmatter + harness definition)
βββ references/
βββ workflow.md # Agent harness lifecycle
βββ task-types.md # Harness task types, scheduler modes, declaration syntax
βββ service-transform.md # Service-layer transform pattern for Mock/API adaptation
βββ templates/ # Task declaration templates
βββ code-dev-task.md
βββ code-fix-task.md
βββ code-refactor-task.md
βββ doc-write-task.md
βββ research-task.md
βββ test-task.md
Project Structure
ai-dev-workflow/
βββ skills/dev-workflow/ # Agent Harness Workflow Skill (self-contained)
β βββ SKILL.md
β βββ references/
β βββ workflow.md # Agent harness lifecycle
β βββ task-types.md
β βββ service-transform.md
β βββ templates/
β
βββ src/ # Requirements MCP Server source
β βββ index.ts # Entry & MCP Server definition
β βββ adapters/
β β βββ base.ts # BaseAdapter abstract class
β β βββ ones.ts # ONES adapter
β β βββ index.ts # Factory function createAdapter()
β βββ config/
β β βββ loader.ts # Config loading & env resolution
β βββ tools/
β β βββ get-requirement.ts # get_requirement tool
β β βββ search-requirements.ts # search_requirements tool
β β βββ list-sources.ts # list_sources tool
β βββ types/
β β βββ auth.ts
β β βββ config.ts
β β βββ requirement.ts
β βββ utils/
β βββ http.ts
β βββ map-status.ts
β
βββ tests/ # Tests
βββ .requirements-mcp.json.example # MCP Server config template
βββ package.json
βββ tsconfig.json
βββ tsdown.config.ts
βββ vitest.config.ts
Tech Stack
| Technology | Purpose |
|---|---|
| TypeScript | MCP Server language |
| @modelcontextprotocol/sdk | MCP protocol SDK |
| Zod | Schema validation & type inference |
| tsdown | Build tool (ESM + CJS + dts) |
| Vitest | Test framework |
| bumpp | Version management & publishing |
| Node.js >= 20 | Runtime |
Development
# Install dependencies
pnpm install
# Dev mode
pnpm dev
# Build
pnpm build
# Run tests
pnpm test
# Type check
pnpm lint
Publishing
This project uses bumpp for version management:
# Interactive version bump, auto commit + tag + push
pnpm release
