Skip to content

Commit 57cd1eb

Browse files
authored
Merge pull request #119 from cyberfabric/feature/compact-prompts
feat: ship prompt compactification across workflows, requirements, and SKILL
2 parents 600f723 + 241c578 commit 57cd1eb

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+4740
-15131
lines changed

.bootstrap/.core/architecture/specs/cli.md

Lines changed: 45 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ drivers:
4242
- [get-content](#get-content)
4343
- [list-id-kinds](#list-id-kinds)
4444
- [info](#info)
45+
- [agents](#agents)
4546
- [generate-agents](#generate-agents)
4647
- [generate-resources](#generate-resources)
4748
- [doctor](#doctor)
@@ -471,17 +472,48 @@ cpt info
471472

472473
---
473474

475+
### agents
476+
477+
Show generated agent integration files without writing anything.
478+
479+
```
480+
cpt agents [--agent AGENT | --openai] [--root PATH] [--cypilot-root PATH] [--config PATH]
481+
```
482+
483+
| Option | Description |
484+
|--------|-------------|
485+
| `--agent AGENT` | Limit output to a specific agent: `windsurf`, `cursor`, `claude`, `copilot`, `openai` |
486+
| `--openai` | Shortcut for `--agent openai` |
487+
| `--root PATH` | Project root directory to search from (default: current directory) |
488+
| `--cypilot-root PATH` | Explicit Cypilot core root (optional override) |
489+
| `--config PATH` | Path to agents config JSON (optional; built-in defaults used when omitted) |
490+
491+
**Behavior**:
492+
1. Resolve project root and cypilot directory.
493+
2. Load agent config (or built-in defaults).
494+
3. Inspect generated workflow proxies, skill shims, and subagent files for the selected agents.
495+
4. Return a read-only per-agent listing; no files are written.
496+
497+
**Exit**: 0.
498+
499+
---
500+
474501
### generate-agents
475502

476-
Generate agent entry points.
503+
Generate or update agent integration files.
477504

478505
```
479-
cpt generate-agents [--agent AGENT]
506+
cpt generate-agents [--agent AGENT | --openai] [--root PATH] [--cypilot-root PATH] [--config PATH] [--dry-run]
480507
```
481508

482509
| Option | Description |
483510
|--------|-------------|
484511
| `--agent AGENT` | Generate for a specific agent only: `windsurf`, `cursor`, `claude`, `copilot`, `openai` |
512+
| `--openai` | Shortcut for `--agent openai` |
513+
| `--root PATH` | Project root directory to search from (default: current directory) |
514+
| `--cypilot-root PATH` | Explicit Cypilot core root (optional override) |
515+
| `--config PATH` | Path to agents config JSON (optional; built-in defaults used when omitted) |
516+
| `--dry-run` | Compute planned changes without writing files |
485517

486518
**Without `--agent`**: regenerate for all agents.
487519

@@ -490,16 +522,17 @@ cpt generate-agents [--agent AGENT]
490522
2. Compose the main SKILL.md from core commands + collected extensions.
491523
3. Generate workflow entry points in each agent's native format.
492524
4. Generate skill shims referencing the composed SKILL.md.
493-
5. Full overwrite on each invocation (no merge with existing files).
494-
495-
**Output targets**:
496-
| Agent | Entry Points Directory |
497-
|-------|----------------------|
498-
| Windsurf | `.windsurf/workflows/` |
499-
| Cursor | `.cursor/rules/` |
500-
| Claude | `.claude/commands/` |
501-
| Copilot | `.github/prompts/` |
502-
| OpenAI | `.openai/` |
525+
5. Generate tool-specific subagent files where supported.
526+
6. Full overwrite on each invocation (no merge with existing files).
527+
528+
**Generated surfaces**:
529+
| Agent | Generated files/directories |
530+
|-------|----------------------------|
531+
| Windsurf | `.windsurf/workflows/`, `.windsurf/skills/cypilot/SKILL.md` |
532+
| Cursor | `.cursor/commands/`, `.cursor/rules/cypilot.mdc`, `.cursor/agents/` |
533+
| Claude | `.claude/commands/`, `.claude/skills/`, `.claude/agents/` |
534+
| Copilot | `.github/prompts/`, `.github/copilot-instructions.md`, `.github/agents/` |
535+
| OpenAI | `.agents/skills/cypilot/SKILL.md`, `.codex/agents/` |
503536

504537
**Exit**: 0.
505538

0 commit comments

Comments
 (0)