Skip to content

klein-business/portable-agent-workflows

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

65 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Portable Agent Workflows

npm version Public repository Domain model agent-work-v1 Harness agnostic PR first Compatibility governed Security policy Community profile 100% License MIT

CI configured CodeQL default setup Dependabot configured Python 3.11+ uv Ruff pytest validated

Codex supported OpenCode documented Claude Code supported Cursor supported

Portable Agent Workflows is a harness-agnostic workflow layer for coding agents. It defines a shared vocabulary, portable skills, adapter mappings, persistent artifacts, and generated native entrypoints so Codex, OpenCode, Claude Code, Cursor, and similar harnesses can follow the same workflow model without sharing tool names or hidden chat state.

Origins

This model combines the strongest ideas from obra/superpowers and DasDigitaleMomentum/opencode-processing-skills: explicit skill workflows, durable planning artifacts, review gates, handovers, and harness-specific adapters. It does not copy either system directly; it defines a clean agent-work-v1 domain model that can be used across Codex, OpenCode, Claude Code, Cursor, and future harnesses.

What This Repository Is

  • A portable workflow and artifact model for coding agents.
  • A set of harness-agnostic skills under .agent-work/skills/.
  • A generated integration layer for Codex, Claude Code, and Cursor.
  • A project-local npm initializer for Codex, Claude Code, Cursor, and OpenCode.
  • A governance-backed reference repository for agent-work-v1.

What This Repository Is Not

  • It is not a runtime library or global installer.
  • It is not tied to one agent harness.
  • It does not mutate GitHub repository settings automatically.

Public Project Status

Portable Agent Workflows is a public, MIT-licensed, open-source reference model. It is ready for evaluation, issues, and focused pull requests that improve the agent-work-v1 model, documentation, validation, or generated harness entrypoints. The GitHub Community Profile is complete: README, license, contributing guide, Code of Conduct, issue template, pull request template, and contributor content reporting are in place.

The main reader path is this README, then docs/overview.md, then the .agent-work/ source artifacts. docs/superpowers/ records design and planning history; it is kept for transparency, not as the primary product documentation path.

Enterprise Readiness

Quality Gates

npm run check:node
uv run python tools/generate_harness_integrations.py --check
uv run pytest tests/ -v
uv run ruff check tests/ tools/
uv run ruff format --check tests/ tools/
uv run python tools/check_markdown_links.py
git diff --check

What Is Included

  • .agent-work/glossary.md defines the agent-work-v1 domain model.
  • .agent-work/adapters/ maps neutral roles and capabilities to Codex, OpenCode, Claude Code, and Cursor.
  • .agent-work/skills/ contains the eleven V1 portable skills.
  • .agent-work/plans/portable-agent-work-example/ demonstrates the full artifact lifecycle.
  • package.json, bin/, and src/ publish the portable-agent-workflows and paw npm commands.
  • AGENTS.md, CLAUDE.md, .claude/commands/, .cursor/rules/, and .opencode/commands/ provide native harness entrypoints.
  • docs/superpowers/ records design and planning history for major changes.
  • tools/generate_harness_integrations.py regenerates native harness files from .agent-work/.
  • tools/check_markdown_links.py validates local Markdown links.
  • tests/ validates model structure, generated files, and enterprise foundation artifacts.
  • docs/ documents architecture, governance, reference material, modules, and features.

Core Ideas

  • Skills describe behavior.
  • Artifacts store durable state.
  • Roles define responsibility.
  • Capabilities define what a harness can do.
  • Adapters translate neutral intent into concrete harness execution.
  • Later agents should be able to continue from files, not hidden chat context.

Quickstart

Install project-local workflow files into another repository:

npx portable-agent-workflows init

For non-interactive installs, select harnesses explicitly:

npx portable-agent-workflows init --harness codex,claude,cursor,opencode --yes
npx portable-agent-workflows check

See Distribution for safety rules, dry runs, overwrite behavior, and publishing boundaries.

Install development dependencies with uv:

uv sync --dev

Run validation:

npm run check:node
uv run python tools/generate_harness_integrations.py --check
uv run pytest tests/ -v
uv run ruff check tests/ tools/
uv run ruff format --check tests/ tools/
uv run python tools/check_markdown_links.py

Supported Harnesses

See the compatibility matrix for current support status.

Documentation

V1 Skills

  • define-domain-model
  • shape-idea
  • shape-spec
  • create-phased-plan
  • verify-implementation-plan
  • execute-work-package
  • review-artifact
  • review-implementation
  • update-work-state
  • create-handover
  • write-portable-skill

Repository Status

This repository is a documentation-and-artifact model with a small npm initializer. It does not ship an importable runtime library; the CLI only installs and verifies project-local workflow files. The tests validate that the package, generated files, and artifacts remain structurally coherent.

About

Portable, harness-agnostic agent workflows with shared skills, durable artifacts, review gates, and native integrations for Codex, Claude Code, Cursor, and OpenCode.

Topics

Resources

License

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Packages

 
 
 

Contributors