awslabs/cli-agent-orchestrator/aidlc-portfolio
Claude Code and agent skill by awslabs/cli-agent-orchestrator
- community
Checking that the SKILL.md file is still in the repository.
Coordinate multiple AI-DLC workflows across repositories and Git worktrees using an evidence-backed portfolio catalog and deterministic workspace tooling. Use when initializing an AI-DLC portfolio workspace, discovering organization or business context, registering projects and dependencies, creating child intents and worktrees, validating dispatch readiness, monitoring parallel AI-DLC sessions, or synthesizing cross-project outcomes.
Install
npx vskill@latest install awslabs/cli-agent-orchestrator/aidlc-portfolioSKILL.md
The same SKILL.md was published earlier as awslabs/cli-agent-orchestrator/aidlc-portfolio.
AI-DLC Portfolio
Maintain a thin control plane around existing AI-DLC workflows. Never replace or modify the child workflow engine.
Resolve every relative resource path against the directory containing this SKILL.md. In the commands below, set SKILL_DIR to that absolute directory:
Operating Rules
- Run
"$SKILL_DIR/scripts/portfolio.ts"for every portfolio mutation. - Keep portfolio state at
<root>/portfolioand project checkouts at
<root>/repositories.
- Give each active child intent its own path under
<root>/worktrees. - Dispatch one
aidlc_runnerper child intent with CAOassign. - Treat child AI-DLC state as opaque. Never edit
aidlc-state.mdor derive its
next stage.
- Require evidence and confidence for discovered catalog relationships.
- Ask the human about missing or uncertain business facts before verification.
- Run dispatch validation before starting or resuming a child runner.
- Treat the portfolio supervisor as the sole shared-memory approval authority.
- Never merge worktree-local
project.mdorteam.mdchanges. - The supervisor owns bootstrap; the operator should not have to prepare the
workspace, repository checkout, intent files, worktrees, or child harness.
- Never dispatch until portfolio discovery has explicit human confirmation.
- Never answer a child AI-DLC question without human input.
- Stage, project, and verify child harnesses only through
harnesscommands. - Advance parent work only through the persisted portfolio lifecycle.
- Require one structured result per child and pass convergence before Learn.
Bootstrap From Work Items
The normal entry point is an operator naming a repository and one or more work items. Perform setup on their behalf:
- Derive a stable portfolio ID from the repository and sorted work-item IDs.
- Use the terminal's launch directory as the portfolio root unless the
operator explicitly supplies another root. Never create a nested root.
- Run
initagainst that exact root; never hand-create portfolio state. - Create a fresh canonical checkout under
<root>/repositories. Do not reuse,
clean, reset, or remove an existing user checkout or worktree.
- Inspect the work items and register the project, dependencies, and one
portfolio intent per independent work item using templates and utility commands.
- Create each worktree through
worktree create. - Locate the Claude AI-DLC distribution at
$HOME/Project/aidlc-workflows/dist/claude. Run harness stage, harness sync, and harness verify to project one manifest-pinned Opus 5 runtime into every worktree.
- Run
doctoranddispatch check, render each assignment with
dispatch message, then assign all dependency-ready aidlc_runner sessions concurrently with CAO working_directory set to each absolute worktree.
- Report the generated root, intent IDs, worktree paths, and terminal IDs.
The operator owns creation of the empty parent/root directory and launches the supervisor from it. Ask them only when a required repository, work item, credential, or AI-DLC distribution cannot be discovered. Do not turn routine bootstrap inside the root into operator instructions.
Initialize
Then run:
Initialization is explicit and idempotent. Never use a hook to create a workspace.
For a workspace created before lifecycle state schemaVersion 2, migrate once:
Read portfolio-lifecycle.md. After every startup or callback, inspect the durable phase and exact next action:
Discover And Register
Read catalog-model.md before discovering or changing projects, components, capabilities, or dependencies. Read coordination-rules.md before creating child intents, worktrees, or dispatches.
Inspect technical evidence before asking questions. Use the templates under assets/templates, then register validated files:
Record unresolved questions under <root>/portfolio/questions. Support Unknown, Defer, and referral to another stakeholder. Do not upgrade a fact from discovered or proposed to verified without human approval.
After catalog registration, render assets/templates/discovery-decision.yaml. Record the human's decision for organization, business outcomes, business capabilities, and the complete dependency list:
For every unknown or deferred disposition, the corresponding fact name must appear in acceptance.unknowns or acceptance.deferrals. The utility stores a catalog revision; any later catalog change makes confirmation stale and blocks dispatch until the human reviews it again.
Project registration records a canonical checkout; it does not clone one. Before worktree creation, ensure the registered path exists under <root>/repositories and is a Git repository.
Harness Lifecycle
Read harness-lifecycle.md before staging or updating child runtimes. Stage the source distribution after registering intents and creating their worktrees:
The staged manifest records source revision, source and staged hashes, overlay revision, and staging time. The default overlay pins the Claude opus[1m] alias to global.anthropic.claude-opus-5[1m]. Use --project and --intent to sync or verify a subset.
Never bypass a tracked-path refusal. Reconcile project-owned .claude/ or aidlc/ content explicitly before retrying.
Dispatch
Create or validate a worktree:
The worktree must pass harness verification and dispatch validation. Then render the assignment. CAO memory is scoped per terminal: you run in the portfolio root and each runner runs in its own repository worktree, so a runner's own memory_recall cannot see what you promoted. Deliver promoted learnings in the assignment instead:
- Call the
memory_recallMCP tool in your own scope withscope: "project",
memory_type: "feedback", and a limit that covers the portfolio's promoted learnings (at most 100). Save its JSON result to a file.
- Render
assets/templates/runner-message.md, passing your own CAO terminal
ID for callbacks and, optionally, Markdown files for the business, component, and dependency slice and for the contract inputs:
The command repeats the dispatch check, then joins each recalled entry to the promotion ledger by memory key. It delivers a learning only if it was promoted and applies to this dispatch: a team learning, a learning for this project, or one for a project linked to it by a catalog dependency or dependsOn. It delivers at most 10, each truncated to 1,000 characters, fenced and labelled as reference data under Relevant Context. Its JSON output lists excluded recall entries with reasons, missing promoted learnings the recall did not return, and pending proposals not yet reviewed. Recall again if a learning is missing by accident, and review pending proposals first if this runner should receive them. Delivery is a snapshot: a runner already running does not receive a learning promoted after its dispatch.
Use the rendered file as the CAO assign message, with agent_profile: aidlc_runner and working_directory set to the validated absolute worktree. The supervisor profile enables this CAO parameter through CAO_ENABLE_WORKING_DIRECTORY=true. After assignment returns a terminal ID, record it:
If assignment fails, leave the session pending. Never mark a session active before CAO returns a terminal ID.
Parent Lifecycle
Advance only one phase at a time:
Repeat for confirm and plan. Entering Dispatch requires explicit human plan acceptance:
After all child sessions complete, advance to integrate, resolve every reported blocker, then advance to learn. Finish only after learnings and integration state are clean:
Cross-Project Convergence
Read convergence.md. Before a child reports completion, it renders assets/templates/child-result.yaml and submits it:
After all expected results arrive, compute graph impact and integration status:
Missing results and dependency-order risks require remediation. For an eligible breaking, deferred, or unknown risk, obtain an explicit human decision and bind it to the current risk revision:
Use resolved only when the human confirms the reported risk is resolved. Re-run convergence check; changed evidence invalidates stale decisions.
Human Question Relay
When a child AI-DLC stage asks for human judgment, the runner writes the generated questions to Markdown using [Answer]: markers and submits the unanswered file:
Submission rejects any pre-filled answer and moves the session to waiting. The runner reports the packet and stops. It must never invoke question answer.
The human actions CAO's human-approval surface to resolve the packet. That surface — not any agent-facing command — mints an approval record bound to the packet, carrying the human's verified identity. Resolve with that approval:
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingexamples/aidlc-portfolio/skills/aidlc-portfolio/SKILL.md
Popularity
- Repository stars
- 1,127
- Repository forks
- 240
- 7-day trend score
- 35
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/awslabs/cli-agent-orchestrator/aidlc-portfolio)