awslabs/cli-agent-orchestrator/aidlc-portfolio

Claude Code and agent skill by awslabs/cli-agent-orchestrator

Trust tier 3
  • community
Source check pending

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-portfolio

SKILL.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:

bash
SKILL_DIR=/absolute/path/to/skills/aidlc-portfolio

Operating Rules

  1. Run "$SKILL_DIR/scripts/portfolio.ts" for every portfolio mutation.
  2. Keep portfolio state at <root>/portfolio and project checkouts at

<root>/repositories.

  1. Give each active child intent its own path under <root>/worktrees.
  2. Dispatch one aidlc_runner per child intent with CAO assign.
  3. Treat child AI-DLC state as opaque. Never edit aidlc-state.md or derive its

next stage.

  1. Require evidence and confidence for discovered catalog relationships.
  2. Ask the human about missing or uncertain business facts before verification.
  3. Run dispatch validation before starting or resuming a child runner.
  4. Treat the portfolio supervisor as the sole shared-memory approval authority.
  5. Never merge worktree-local project.md or team.md changes.
  6. The supervisor owns bootstrap; the operator should not have to prepare the

workspace, repository checkout, intent files, worktrees, or child harness.

  1. Never dispatch until portfolio discovery has explicit human confirmation.
  2. Never answer a child AI-DLC question without human input.
  3. Stage, project, and verify child harnesses only through harness commands.
  4. Advance parent work only through the persisted portfolio lifecycle.
  5. 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:

  1. Derive a stable portfolio ID from the repository and sorted work-item IDs.
  2. Use the terminal's launch directory as the portfolio root unless the

operator explicitly supplies another root. Never create a nested root.

  1. Run init against that exact root; never hand-create portfolio state.
  2. Create a fresh canonical checkout under <root>/repositories. Do not reuse,

clean, reset, or remove an existing user checkout or worktree.

  1. Inspect the work items and register the project, dependencies, and one

portfolio intent per independent work item using templates and utility commands.

  1. Create each worktree through worktree create.
  2. 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.

  1. Run doctor and dispatch 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.

  1. 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

bash
bun "$SKILL_DIR/scripts/portfolio.ts" init \
--root /absolute/workspace \
--id portfolio-id \
--name "Portfolio Name"

Then run:

bash
bun "$SKILL_DIR/scripts/portfolio.ts" doctor --root /absolute/workspace

Initialization is explicit and idempotent. Never use a hook to create a workspace.

For a workspace created before lifecycle state schemaVersion 2, migrate once:

bash
bun "$SKILL_DIR/scripts/portfolio.ts" lifecycle migrate --root <root>

Read portfolio-lifecycle.md. After every startup or callback, inspect the durable phase and exact next action:

bash
bun "$SKILL_DIR/scripts/portfolio.ts" lifecycle status --root <root>

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:

bash
bun "$SKILL_DIR/scripts/portfolio.ts" project register --root <root> --file <project.yaml>
bun "$SKILL_DIR/scripts/portfolio.ts" dependency add --root <root> --file <dependency.yaml>
bun "$SKILL_DIR/scripts/portfolio.ts" intent create --root <root> --file <intent.yaml>

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:

bash
bun "$SKILL_DIR/scripts/portfolio.ts" discovery confirm \
--root <root> --file <discovery-decision.yaml>

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:

bash
bun "$SKILL_DIR/scripts/portfolio.ts" harness stage \
--root <root> \
--source "$HOME/Project/aidlc-workflows/dist/claude"
bun "$SKILL_DIR/scripts/portfolio.ts" harness sync --root <root>
bun "$SKILL_DIR/scripts/portfolio.ts" harness verify --root <root>

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:

bash
bun "$SKILL_DIR/scripts/portfolio.ts" worktree create \
--root <root> --project <project> --intent <intent> \
--branch <branch> --base <base>
bun "$SKILL_DIR/scripts/portfolio.ts" harness verify \
--root <root> --project <project> --intent <intent>
bun "$SKILL_DIR/scripts/portfolio.ts" dispatch check \
--root <root> --project <project> --intent <intent>

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:

  1. Call the memory_recall MCP tool in your own scope with scope: "project",

memory_type: "feedback", and a limit that covers the portfolio's promoted learnings (at most 100). Save its JSON result to a file.

  1. 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:

bash
bun "$SKILL_DIR/scripts/portfolio.ts" dispatch message \
--root <root> --project <project> --intent <intent> \
--callback-terminal <supervisor-terminal-id> --recall <recall.json> \
[--context <context.md>] [--contracts <contracts.md>] --out <message.md>

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:

bash
bun "$SKILL_DIR/scripts/portfolio.ts" session update \
--root <root> --project <project> --intent <intent> \
--status active --terminal <terminal-id>

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:

bash
bun "$SKILL_DIR/scripts/portfolio.ts" lifecycle advance \
--root <root> --to discover

Repeat for confirm and plan. Entering Dispatch requires explicit human plan acceptance:

bash
bun "$SKILL_DIR/scripts/portfolio.ts" lifecycle advance \
--root <root> --to dispatch --accepted-by "<human decision maker>"

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:

bash
bun "$SKILL_DIR/scripts/portfolio.ts" lifecycle complete \
--root <root> --actor "<portfolio supervisor>"

Cross-Project Convergence

Read convergence.md. Before a child reports completion, it renders assets/templates/child-result.yaml and submits it:

bash
bun "$SKILL_DIR/scripts/portfolio.ts" result submit \
--root <root> --file <child-result.yaml>

After all expected results arrive, compute graph impact and integration status:

bash
bun "$SKILL_DIR/scripts/portfolio.ts" convergence check \
--root <root> [--intent <intent>]

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:

bash
bun "$SKILL_DIR/scripts/portfolio.ts" convergence decide \
--root <root> --id <risk-id> --decision accepted \
--accepted-by "<human decision maker>" --note "<decision rationale>"

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:

bash
bun "$SKILL_DIR/scripts/portfolio.ts" question submit \
--root <root> --id <packet-id> --project <project> --intent <intent> \
--stage <stage> --file <questions.md>

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

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
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/awslabs/cli-agent-orchestrator/aidlc-portfolio/badge)](https://verified-skill.com/skills/awslabs/cli-agent-orchestrator/aidlc-portfolio)

Something wrong with this skill or its page? Tell us.