project-teams-spec
v1.1.0
Published
Multi-Agent Engineering Spec - Standardized engineering specification injection system for AI CLI tools
Maintainers
Readme
project-teams-spec
A multi-agent engineering specification execution system. Provides standardized Skill definitions, Agent definitions, and rule sets that can be injected into CLI tool directories, enabling tools to collaborate in a unified paradigm to achieve business goals.
Table of Contents
- Features
- Quick Start
- Architecture
- Supported Tools
- Command System
- Skills Overview
- Agents
- Directory Structure
- Troubleshooting
- Contributing
- Changelog
- License
Features
- Standardized Workflow: 9 standard Skills covering the complete flow from project analysis to delivery archival
- Multi-Agent Collaboration: Supports Java, Frontend, Backend, QA, Code Reviewer and other Agents
- Multi-Tool Support: Compatible with Claude Code, OpenCode, Trae and other CLI tools
- Command Generation: Auto-generates namespaced commands (e.g.,
/pts:full-analysis) - Interactive Installation: Welcome screen + tool multi-select, ready to use out of the box
- Flexible Granularity: INSTRUCTIONS support intent/procedural/protocol/conversational granularity
Quick Start
Prerequisites
- Node.js >= 18.0.0
- npm or yarn
Installation
# Install globally via npm
npm install -g project-teams-spec
# Or use npx directly
npx project-teams-spec installInteractive Installation
# Run without arguments for interactive mode
project-teams-spec installThis will show a welcome screen and let you select which tools to install to (Claude Code, OpenCode, Trae, etc.).
Install to Specific Tools
# Install to Claude Code
project-teams-spec install --tools claude
# Install to multiple tools
project-teams-spec install --tools claude,opencode,trae
# Force overwrite existing installation
project-teams-spec install --tools claude --force
# Preview what would be installed
project-teams-spec install --tools claude --dry-runOther Commands
# List installed tools and status
project-teams-spec list
# Uninstall from specific tools
project-teams-spec uninstall --tools claudeInvoke Commands
After installation, use slash commands in your CLI tool:
/pts:full-analysis # Complete project analysis
/pts:plan-cycle # Planning cycle
/pts:execution-cycle # Execution cycleArchitecture
┌─────────────────────────────────────────────────────────────────────┐
│ Master (CLI Tool) │
│ project-teams-spec system │
├─────────────────────────────────────────────────────────────────────┤
│ Skills (9 phases) │
│ ┌──────────┬──────────┬──────────┬──────────┬──────────┐ │
│ │explore │complexity │ claim │aggregate │plan-dev │ │
│ ├──────────┼──────────┼──────────┼──────────┼──────────┤ │
│ │plan-val │execute │qa-verify │delivery │ │ │
│ └──────────┴──────────┴──────────┴──────────┴──────────┘ │
├─────────────────────────────────────────────────────────────────────┤
│ Agents (5 specialized agents) │
│ ┌─────────┬──────────┬──────────┬─────────┬──────────┐ │
│ │ java │ frontend │ backend │ qa │ reviewer │ │
│ │ agent │ agent │ agent │ agent │ │ │
│ └─────────┴──────────┴──────────┴─────────┴──────────┘ │
├─────────────────────────────────────────────────────────────────────┤
│ Rules / Hooks / Commands │
└─────────────────────────────────────────────────────────────────────┘
Workflow:
┌────────────┐ ┌────────────┐ ┌────────────┐
│ Phase │────▶│ Phase │────▶│ Phase │
│ N-1 │ │ N │ │ N+1 │
└────────────┘ └────────────┘ └────────────┘Project Source Structure
project-teams-spec/
├── src/
│ ├── install.ts # Installation script
│ ├── __tests__/runner.js # Unit tests
│ ├── core/
│ │ ├── command-generation/ # Command generation module
│ │ │ ├── types.ts # Type definitions
│ │ │ ├── registry.ts # Adapter registry
│ │ │ ├── generator.ts # Command generator
│ │ │ └── adapters/ # Tool adapters
│ │ └── command-templates.ts # Command content templates
│ ├── prompts/
│ │ └── tool-select.ts # Tool selector
│ └── ui/
│ └── welcome.ts # Welcome screen
├── config/
│ ├── skills/ # 9 standard Skills
│ ├── agents/ # 5 Agent definitions
│ ├── rules/ # Rule files
│ ├── hooks/ # Claude Code Hook scripts
│ └── commands/ # Command templates
├── bin/
│ └── cli.js # CLI entry point
└── openspec/
└── changes/ # OpenSpec change managementSupported Tools
| Tool | Project Directory | Command Invocation |
|------|-------------------|-------------------|
| Claude Code | .claude/ | /pts:<command> |
| OpenCode | .opencode/ | /pts-<command> |
| Trae | .trae/ | /pts-<command> |
| Continue | .continue/ | TBD |
| Kiro | .kiro/ | TBD |
Command System
Command Generation
Commands are auto-generated via the src/core/command-generation/ module, supporting multi-tool adapters:
| Tool | Path | Invocation |
|------|------|------------|
| Claude Code | .claude/commands/pts/<id>.md | /pts:full-analysis |
| OpenCode | .opencode/commands/pts-<id>.md | /pts-full-analysis |
| Trae | .trae/commands/pts-<id>.md | /pts-full-analysis |
Available Commands
| Command | Description |
|----------|-------------|
| /pts:full-analysis | Complete project analysis workflow |
| /pts:plan-cycle | Planning cycle: task claiming, plan validation |
| /pts:execution-cycle | Execution cycle: task execution, delivery archival |
Skills Overview
| Skill | Phase | Granularity | Description | |-------|-------|------------|-------------| | pts-project-explore | 1 | intent | Analyze project structure | | pts-complexity-evaluate | 2 | procedural | Evaluate complexity | | pts-agent-claim | 3 | protocol | Assign tasks | | pts-issue-aggregate | 4 | conversational | Aggregate issues | | pts-plan-develop | 5 | intent | Develop execution plan | | pts-plan-validate | 6 | procedural | Review and validate plan | | pts-task-execute | 7 | protocol | Execute tasks | | pts-qa-verify | 8 | protocol | Quality verification | | pts-delivery-close | 9 | procedural | Delivery and archival |
Granularity Types
| Granularity | Description |
|-------------|-------------|
| intent | Autonomous decision-making based on goals |
| procedural | Step-by-step execution with clear procedures |
| protocol | Strict protocol-based coordination |
| conversational | Interactive dialogue and clarification |
Agents
| Agent | Role | Expertise | |-------|------|----------| | java-agent | Java backend development expert | Java, Spring, Maven/Gradle | | frontend-agent | Frontend development expert | React, Vue, Angular, TypeScript | | backend-agent | Backend architecture expert | Microservices, APIs, Architecture | | qa-agent | Quality verification expert | Testing, QA, Verification | | code-reviewer | Code review expert | Code quality, Best practices |
Directory Structure
Installation Output
After installation, the target directory will contain:
.claude/
├── skills/ # Skill definitions
│ ├── pts-project-explore/
│ ├── pts-complexity-evaluate/
│ ├── pts-agent-claim/
│ ├── pts-issue-aggregate/
│ ├── pts-plan-develop/
│ ├── pts-plan-validate/
│ ├── pts-task-execute/
│ ├── pts-qa-verify/
│ └── pts-delivery-close/
├── agents/ # Agent definitions
│ ├── java-agent/
│ ├── frontend-agent/
│ ├── backend-agent/
│ ├── qa-agent/
│ └── code-reviewer/
├── rules/ # Rule sets
│ ├── architecture.md
│ ├── coding-standards.md
│ └── naming-conventions.md
├── hooks/ # Hook scripts (Claude Code only)
│ ├── on-subagent-start.sh
│ ├── on-subagent-stop.sh
│ ├── on-session-end.sh
│ ├── on-task-created.sh
│ └── on-task-completed.sh
├── commands/
│ └── pts/ # Command definitions (with namespace)
│ ├── full-analysis.md
│ ├── plan-cycle.md
│ └── execution-cycle.md
└── .project-teams-spec-*-version # Version tracking fileTroubleshooting
Windows Environment Requirements
Important: Hooks scripts require a Unix-like shell environment on Windows:
- Supported: Git Bash, MSYS2, WSL (Windows Subsystem for Linux)
- Not Supported: Pure Windows CMD or PowerShell (hooks will not execute)
If you encounter hook-related errors on Windows, ensure you are using Git Bash or a compatible shell.
Command Not Available
If /pts: commands are not available:
- Verify
project-teams-spec installhas been run - Check if
.claude/commands/pts/directory exists - Restart your CLI tool
Permission Issues
# Check directory permissions
ls -la .claude
# Fix permissions (if needed)
chmod 755 .claudeVersion Conflicts
If a previous version was installed:
# Force overwrite installation
project-teams-spec install --tools claude --forceInstallation Fails
# Check Node.js version
node --version # Should be >= 18.0.0
# Clean npm cache
npm cache clean --force
# Try with verbose output
npm install -g project-teams-spec --verboseContributing
Contributions are welcome! Please see CONTRIBUTING.md for details.
Development Setup
# Clone the repository
git clone https://github.com/your-org/project-teams-spec.git
cd project-teams-spec
# Install dependencies
npm install
# Build TypeScript
npm run build
# Run tests
npm test
# Link for local development
npm linkCode Style
This project follows the coding standards defined in config/rules/:
- 2 spaces for config files, 4 spaces for code
- kebab-case for file names
- UpperCamelCase for class names
- lowerCamelCase for function names
Changelog
See CHANGELOG.md for detailed version history.
Documentation
- CLAUDE.md - Project architecture details
- openspec/changes/ - OpenSpec change management
License
MIT License - see LICENSE for details.
