Skip to content
Development
Skill

/scaffold-framework

Create a complete framework package structure inside agentic/code/frameworks/. Use when authoring an expansion (framework) for AIWG.

From plugin
aiwg
229200 skills199 agents26 commands

Claude Code

$ npx -y skills add jmagly/aiwg --skill scaffold-framework --agent claude-code

SKILL.md

scaffold-framework.SKILL.md
namespace: aiwg
name: scaffold-framework
platforms: [all]
description: Create a complete framework package structure inside agentic/code/frameworks/. Use when authoring an expansion (framework) for AIWG.
triggers:
  - author a framework
  - create a framework
  - build a framework package
  - framework authoring
  - scaffold framework
  - new expansion

Scaffold Framework

Create a complete framework package structure inside `agentic/code/frameworks/`.

Triggers

Alternate expressions and non-obvious activations (primary phrases are matched automatically from the skill description):

  • "I need a new framework" → scaffold framework with guided design
  • "create an AIWG framework" → prompt for name, scaffold
  • "build a lifecycle framework for X" → derive name from X, scaffold with interactive mode
  • "new framework package" → prompt for name and description

Trigger Patterns Reference

| Pattern | Example | Action | |---------|---------|--------| | Named scaffold | "scaffold framework legal-ops" | Scaffold directly | | Interactive | "scaffold framework --interactive" | Full guided design mode | | Described | "create a framework for content production pipelines" | Derive name=`content-production`, confirm | | Phased | "scaffold framework data-science --phases discovery,analysis,modeling,deployment" | Scaffold with custom phases |

Understanding Frameworks

Frameworks are major capability bundles that model complete operational lifecycles. They contain everything a team needs to manage a specific type of work end-to-end. Examples:

| Framework | Purpose | Scale | |-----------|---------|-------| | `sdlc-complete` | Software development lifecycle | ~58 agents, 100+ templates | | `media-marketing-kit` | Marketing operations | ~37 agents, campaign lifecycle | | `forensics-complete` | Digital forensics and IR | Investigation lifecycle | | `research-complete` | Research workflow automation | Research phases |

Frameworks differ from addons:

  • **Frameworks**: Define a complete lifecycle with phases, transitions, and gate criteria
  • **Addons**: Provide cross-cutting feature bundles installed alongside any framework

Framework creation is a significant undertaking. Study existing frameworks before building new ones. Start with core agents per phase, then expand.

Process

1. Parse Arguments

Extract from `$ARGUMENTS`:

  • `<name>` — kebab-case framework name (required)
  • `--description "<text>"` — short description (optional; prompted if absent)
  • `--phases "<p1,p2,...>"` — comma-separated phase list (optional; defaults to `inception,elaboration,construction,transition`)
  • `--author "<name>"` — author name (optional)
  • `--interactive` — enable guided design questions

If `<name>` is missing, ask before proceeding.

2. Validate Name

  • Must be kebab-case
  • Must not conflict with existing frameworks:
ls agentic/code/frameworks/

3. Interactive Design (if --interactive)

This is the recommended path for first-time framework creation. Ask:

1. **Lifecycle**: What lifecycle does this framework manage? (software dev, marketing, legal, research) 2. **Target audience**: Who uses this framework? (engineering teams, marketing departments, legal firms) 3. **Phase structure**: What phases does this lifecycle include?

  • Default: inception → elaboration → construction → transition
  • Custom examples: discovery → analysis → synthesis → publication

4. **Phase gates**: What criteria must be met to transition between phases? 5. **Agent categories**: What specialist roles are needed per phase?

  • Analysis (analysts, researchers, planners)
  • Design (architects, designers, strategists)
  • Execution (developers, writers, implementers)
  • Quality (reviewers, testers, validators)
  • Coordination (managers, orchestrators, leads)

6. **Template categories**: What artifact types will this framework produce? 7. **Core commands**: What phase-execution and transition commands are needed?

4. Run Scaffolding

aiwg scaffold-framework <name> \
  --description "<description>" \
  --phases "<phase1,phase2,...>"

5. Customize Generated Files

**manifest.json** — Framework registry entry:

{
  "name": "<name>",
  "version": "1.0.0",
  "description": "<description>",
  "author": "<author>",
  "phases": ["<phase1>", "<phase2>"],
  "agents": [],
  "commands": [],
  "skills": [],
  "rules": [],
  "templates": {}
}

**README.md** — Framework overview: purpose, phases, agent catalog, quick start.

**actors-and-templates.md** — Maps roles to artifacts per phase. Critical for orchestration.

**plan-act-`<name>`.md** — Master plan-and-act document defining framework behavior.

6. Populate Phase Flows

Each phase gets a flow definition in `flows/`:

# <Phase> Phase Flow

## Objectives
[What this phase accomplishes]

## Entry Criteria
[What must be true to begin this phase]

## Activities
[What happens in this phase]

## Artifacts Produced
[Documents and deliverables]

## Exit Criteria / Gate
[What must be true to leave this phase]

## Agents
[Which agents are active in this phase]

7. Build Agent Catalog (Priority Order)

After scaffold, build agents in this order:

1. **Phase 1**: 2-3 core agents per phase (primary authors) 2. **Phase 2**: Reviewer agents for each phase 3. **Phase 3**: Orchestration agents for phase transitions

aiwg add-agent <role> --to <name> --template complex

8. Build Command Set (Priority Order)

1. **Phase execution**: `flow-<phase>` commands 2. **Phase transitions**: `flow-<phase>-to-<next>` commands 3. **Utilities**: `project-status`, `gate-check`, `health-check`

aiwg add-command flow-<phase> --to <name> --template orchestration

9. Deploy and Validate

# Deploy framework to active provider
aiwg use <name>

# Validate structure and metadata
aiwg validate-metadata

# Health check
aiwg doctor

Generated Structure

agentic/code/frameworks/<name>/
├── README.m
Read more
@jmagly
Ships withaiwg

Reusable project context and specialist workflows for the AI tools you already use. Plan software, coordinate specialist reviews, prepare campaigns, investigate incidents, organize research, curate media, and maintain operational knowledge.

229200 skills199 agents
Get the whole plugin

Stars on GitHub

Momentum

stars in total
229
Star history of jmagly/aiwg on GitHub, a chart by star-history.com

Other skills on aiwg.

agent-loop-ext

agent-loop-ext

Crash-resilient external agent loop with state persistence and CI/CD integration

@jmagly@jmaglyInstall Skill
agent-loop

agent-loop

Detect requests for iterative autonomous agent loops and route to the appropriate loop executor

@jmagly@jmaglyInstall Skill
auto-test-execution

auto-test-execution

Automatically execute tests when code-generating agents modify source files, enforcing the execute-before-return pattern

@jmagly@jmaglyInstall Skill

More skills from other plugins.

brainstorming
Auto-invoked

brainstorming

You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…

@obra@obraInstall Skill
ask-matt

ask-matt

Ask which skill or flow fits your situation. A router over the skills in this repo.

skills12d309k
@mattpocock@mattpocockInstall Skill
accessibility
Auto-invoked

accessibility

Design, implement, and audit accessible UI to WCAG 2.2 Level AA across Web, iOS, and Android — semantic ARIA roles and labels,…

ecc13d293k
@affaan-m@affaan-mInstall Skill
compiler-commit

compiler-commit

Use when you want to verify compiler changes and commit with the correct convention. Runs tests, lint, and format, then commits…

react2d252k
@facebook@facebookInstall Skill

Questions about scaffold-framework.

Which coding agents can use scaffold-framework?
scaffold-framework installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.