opencastle 1.4.3 → 1.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli/bootstrap-on-init.test.js +5 -5
- package/dist/cli/bootstrap-on-init.test.js.map +1 -1
- package/dist/cli/bootstrap.d.ts +17 -0
- package/dist/cli/bootstrap.d.ts.map +1 -1
- package/dist/cli/bootstrap.js +284 -312
- package/dist/cli/bootstrap.js.map +1 -1
- package/dist/cli/bootstrap.test.js +22 -16
- package/dist/cli/bootstrap.test.js.map +1 -1
- package/dist/cli/convoy/engine.d.ts.map +1 -1
- package/dist/cli/convoy/engine.js +8 -2
- package/dist/cli/convoy/engine.js.map +1 -1
- package/dist/cli/detect.d.ts +4 -0
- package/dist/cli/detect.d.ts.map +1 -1
- package/dist/cli/detect.js +1 -1
- package/dist/cli/detect.js.map +1 -1
- package/dist/cli/doctor.js +4 -4
- package/dist/cli/doctor.js.map +1 -1
- package/dist/cli/init.test.js +4 -5
- package/dist/cli/init.test.js.map +1 -1
- package/dist/cli/log.d.ts +2 -2
- package/dist/cli/log.d.ts.map +1 -1
- package/dist/cli/log.js +1 -1
- package/dist/cli/log.js.map +1 -1
- package/dist/cli/log.test.js +1 -1
- package/dist/cli/log.test.js.map +1 -1
- package/dist/cli/managed-paths.d.ts +1 -1
- package/dist/cli/managed-paths.d.ts.map +1 -1
- package/dist/cli/managed-paths.js +0 -1
- package/dist/cli/managed-paths.js.map +1 -1
- package/dist/cli/project-facts.d.ts +103 -0
- package/dist/cli/project-facts.d.ts.map +1 -0
- package/dist/cli/project-facts.js +577 -0
- package/dist/cli/project-facts.js.map +1 -0
- package/dist/cli/project-facts.test.d.ts +2 -0
- package/dist/cli/project-facts.test.d.ts.map +1 -0
- package/dist/cli/project-facts.test.js +209 -0
- package/dist/cli/project-facts.test.js.map +1 -0
- package/dist/cli/stack-config.js +1 -1
- package/dist/cli/stack-config.js.map +1 -1
- package/package.json +1 -1
- package/src/cli/bootstrap-on-init.test.ts +5 -5
- package/src/cli/bootstrap.test.ts +22 -16
- package/src/cli/bootstrap.ts +361 -373
- package/src/cli/convoy/engine.ts +9 -2
- package/src/cli/detect.ts +1 -1
- package/src/cli/doctor.ts +4 -4
- package/src/cli/init.test.ts +4 -5
- package/src/cli/log.test.ts +1 -1
- package/src/cli/log.ts +2 -2
- package/src/cli/managed-paths.ts +0 -1
- package/src/cli/project-facts.test.ts +228 -0
- package/src/cli/project-facts.ts +647 -0
- package/src/cli/stack-config.ts +1 -1
- package/src/orchestrator/agent-workflows/data-pipeline.md +2 -2
- package/src/orchestrator/agent-workflows/feature-implementation.md +1 -1
- package/src/orchestrator/agent-workflows/schema-changes.md +1 -1
- package/src/orchestrator/agents/team-lead.agent.md +1 -1
- package/src/orchestrator/customizations/README.md +27 -84
- package/src/orchestrator/prompts/bootstrap-customizations.prompt.md +38 -238
- package/src/orchestrator/prompts/brainstorm.prompt.md +1 -1
- package/src/orchestrator/prompts/implement-feature.prompt.md +6 -6
- package/src/orchestrator/skills/agent-memory/KNOWLEDGE-GRAPH.md +1 -1
- package/src/orchestrator/skills/agent-memory/SKILL.md +7 -16
- package/src/orchestrator/skills/documentation-standards/SKILL.md +1 -1
- package/src/orchestrator/skills/observability-logging/SKILL.md +1 -1
- package/src/orchestrator/skills/panel-majority-vote/REFERENCE.md +1 -1
- package/src/orchestrator/skills/team-lead-reference/SKILL.md +2 -2
- package/src/orchestrator/customizations/AGENT-EXPERTISE.md +0 -325
- package/src/orchestrator/customizations/AGENT-FAILURES.md +0 -69
- package/src/orchestrator/customizations/AGENT-PERFORMANCE.md +0 -55
- package/src/orchestrator/customizations/DISPUTES.md +0 -162
- package/src/orchestrator/customizations/KNOWLEDGE-GRAPH.md +0 -10
- package/src/orchestrator/customizations/agents/skill-matrix.md +0 -111
- package/src/orchestrator/customizations/logs/events.ndjson +0 -0
- package/src/orchestrator/customizations/project/decisions.md +0 -31
- package/src/orchestrator/customizations/project/docs-structure.md +0 -34
- package/src/orchestrator/customizations/project/roadmap.md +0 -24
- /package/src/orchestrator/{customizations/logs/README.md → skills/observability-logging/LOG-SCHEMA.md} +0 -0
|
@@ -1,111 +0,0 @@
|
|
|
1
|
-
# Skill Matrix
|
|
2
|
-
|
|
3
|
-
Maps abstract technology capabilities to concrete skill implementations. The matrix distinguishes two types of skills:
|
|
4
|
-
|
|
5
|
-
- **Binding slots** — Plugin-driven, technology-specific skills resolved at runtime (e.g., `database` → `supabase-database`). These change when the tech stack changes.
|
|
6
|
-
- **Core skills** — Hardcoded, stack-agnostic skills referenced directly in agent files (e.g., `validation-gates`, `security-hardening`, `performance-optimization`). These are always available regardless of plugins.
|
|
7
|
-
|
|
8
|
-
## Data File
|
|
9
|
-
|
|
10
|
-
The machine-readable bindings are in [`skill-matrix.json`](skill-matrix.json). The CLI (`opencastle init` and `opencastle sync`) reads and writes this file directly. Agents should read the JSON to resolve capability slots.
|
|
11
|
-
|
|
12
|
-
## How It Works
|
|
13
|
-
|
|
14
|
-
```
|
|
15
|
-
Agent file skill-matrix.json Skill file
|
|
16
|
-
┌──────────────┐ ┌──────────────┐ ┌──────────────┐
|
|
17
|
-
│ Developer │ │ "framework": │ │ nextjs- │
|
|
18
|
-
│ needs: │──lookup──▶│ entries: [ │──load────▶│ framework │
|
|
19
|
-
│ framework │ │ {name, │ │ │
|
|
20
|
-
│ │ │ skill} │ │ │
|
|
21
|
-
│ │ │ ] │ │ │
|
|
22
|
-
└──────────────┘ └──────────────┘ └──────────────┘
|
|
23
|
-
```
|
|
24
|
-
|
|
25
|
-
1. **Agents** declare which capability slots they need (e.g., `framework`, `database`)
|
|
26
|
-
2. **`skill-matrix.json`** maps each slot to one or more technologies and their skill files
|
|
27
|
-
3. **When delegating**, resolve slots through the JSON to load the correct skill(s)
|
|
28
|
-
4. **To switch tech**, update only the binding entries — no agent files change
|
|
29
|
-
|
|
30
|
-
## Multiple Technologies Per Slot
|
|
31
|
-
|
|
32
|
-
A slot can have multiple entries. For example, a project using both Supabase and Prisma:
|
|
33
|
-
|
|
34
|
-
```json
|
|
35
|
-
"database": {
|
|
36
|
-
"entries": [
|
|
37
|
-
{ "name": "Supabase", "skill": "supabase-database" },
|
|
38
|
-
{ "name": "Prisma", "skill": "prisma-database" }
|
|
39
|
-
],
|
|
40
|
-
"description": "Schema, migrations, auth flow, roles"
|
|
41
|
-
}
|
|
42
|
-
```
|
|
43
|
-
|
|
44
|
-
When resolving, load **all** skills listed in the slot's entries.
|
|
45
|
-
|
|
46
|
-
## Switching Technologies
|
|
47
|
-
|
|
48
|
-
### Example: Migrate to a new plugin (Supabase → Azure)
|
|
49
|
-
|
|
50
|
-
1. Create (or install) the Azure plugin: `plugins/azure/SKILL.md` + `plugins/azure/config.ts`
|
|
51
|
-
2. Update `skill-matrix.json`: replace the database entries
|
|
52
|
-
3. Update `project.instructions.md` to reflect the new tech stack
|
|
53
|
-
4. **No agent files change** — Data Engineer, Security Expert still reference the `database` slot
|
|
54
|
-
|
|
55
|
-
### Example: Migrate to an existing plugin (Linear → Jira)
|
|
56
|
-
|
|
57
|
-
1. Plugin already exists: `plugins/jira/SKILL.md`
|
|
58
|
-
2. Update `skill-matrix.json`: replace the `task-management` entries
|
|
59
|
-
3. **No agent files change** — Team Lead still references the `task-management` slot
|
|
60
|
-
|
|
61
|
-
### Example: Switch knowledge-management tool (Notion → Confluence)
|
|
62
|
-
|
|
63
|
-
1. Create (or install) the Confluence plugin: `plugins/confluence/SKILL.md` + `plugins/confluence/config.ts`
|
|
64
|
-
2. Update `skill-matrix.json`: replace the `knowledge-management` entries
|
|
65
|
-
3. **No agent files change** — Team Lead, Researcher, Writer, and Architect still reference the `knowledge-management` slot
|
|
66
|
-
|
|
67
|
-
## Capability Slots Reference
|
|
68
|
-
|
|
69
|
-
| Slot | Description | Agents That Use It |
|
|
70
|
-
|------|-------------|-------------------|
|
|
71
|
-
| `framework` | SSR/SSG, routing, layouts | Developer, Writer |
|
|
72
|
-
| `database` | Schema, migrations, auth flow | Data Engineer, Security Expert |
|
|
73
|
-
| `cms` | Document types, queries | Content Engineer, Writer |
|
|
74
|
-
| `deployment` | Hosting, cron, env vars | DevOps & Release |
|
|
75
|
-
| `codebase-tool` | Task running, linting, testing | Architect, DevOps & Release |
|
|
76
|
-
| `testing` | Unit testing frameworks | Testing Expert |
|
|
77
|
-
| `e2e-testing` | Browser automation | UI/UX Expert, Testing Expert |
|
|
78
|
-
| `task-management` | Issue tracking, workflow states | Team Lead |
|
|
79
|
-
| `knowledge-management` | Knowledge base, research, ADRs, specs | Team Lead, Researcher, Writer, Architect |
|
|
80
|
-
| `design` | Design tokens, component inspection, asset export | UI/UX Expert |
|
|
81
|
-
| `email` | Transactional email, templates, delivery | Developer |
|
|
82
|
-
| `payments` | Payment processing, subscriptions, webhooks | Developer |
|
|
83
|
-
| `observability` | Error tracking, performance monitoring, tracing | DevOps & Release, Performance Expert |
|
|
84
|
-
| `notifications` | Team messaging, alerts, bot integrations | Developer |
|
|
85
|
-
|
|
86
|
-
### Example: Add a second plugin
|
|
87
|
-
|
|
88
|
-
1. Update `skill-matrix.json`: add another entry to the `framework` slot
|
|
89
|
-
2. Both framework skills will be loaded when agents resolve the `framework` slot
|
|
90
|
-
|
|
91
|
-
## Missing Plugin or Empty Slot
|
|
92
|
-
|
|
93
|
-
When resolving a capability slot, two failure cases can occur:
|
|
94
|
-
|
|
95
|
-
1. **Empty slot** — The slot's `entries` array is empty (no plugin installed for that technology). Example: an agent needs `database` but no database plugin was selected during `opencastle init`.
|
|
96
|
-
2. **Missing plugin** — The slot references a skill name (e.g., `"skill": "convex-database"`) but no matching plugin `SKILL.md` file exists on disk.
|
|
97
|
-
|
|
98
|
-
In both cases, **tell the user** that the capability is unavailable and why:
|
|
99
|
-
|
|
100
|
-
- *"The `database` slot has no entries in `skill-matrix.json`. Install a database plugin (e.g., `supabase`, `prisma`) via `opencastle add <plugin>`, or add entries manually."*
|
|
101
|
-
- *"The `database` slot references skill `convex-database`, but no matching plugin was found. Install the Convex plugin or run `opencastle sync` to fix the binding."*
|
|
102
|
-
|
|
103
|
-
**Do NOT silently skip the slot or proceed without the skill.** The agent should surface the gap clearly so the user can resolve it.
|
|
104
|
-
|
|
105
|
-
## Design Principles
|
|
106
|
-
|
|
107
|
-
1. **Single source of truth** — All skill assignments (slots and direct) live in `skill-matrix.json`, not in agent files
|
|
108
|
-
2. **Agents are stack-agnostic** — They describe *what* they need, not *which* tool they use
|
|
109
|
-
3. **Swap without rewriting** — Changing entries updates every agent that uses that slot
|
|
110
|
-
4. **Process skills are stable** — Methodology doesn't change with technology; direct skill references in the matrix are fine
|
|
111
|
-
5. **Capability slots are composable** — Agents can combine slots and direct skills freely (e.g., Security Expert uses the `database` slot + `security-hardening` direct skill)
|
|
File without changes
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
<!-- Populated by agents. Add ADRs here when architectural decisions are made. -->
|
|
2
|
-
|
|
3
|
-
# Architecture Decision Records
|
|
4
|
-
|
|
5
|
-
Log of architectural decisions made during the project. Each ADR captures the context, decision, and consequences so future sessions understand why things are the way they are.
|
|
6
|
-
|
|
7
|
-
## How to Use
|
|
8
|
-
|
|
9
|
-
- **Before making an architectural decision:** Check existing ADRs for prior decisions in the same area
|
|
10
|
-
- **After making a decision:** Add a new ADR with the next available ID
|
|
11
|
-
- **When revisiting a decision:** Update the status to `Superseded` and reference the new ADR
|
|
12
|
-
|
|
13
|
-
## Decisions
|
|
14
|
-
|
|
15
|
-
### ADR-001: _Template — Short Decision Title_
|
|
16
|
-
|
|
17
|
-
| Field | Value |
|
|
18
|
-
|-------|-------|
|
|
19
|
-
| **ID** | ADR-001 |
|
|
20
|
-
| **Date** | YYYY-MM-DD |
|
|
21
|
-
| **Status** | Proposed / Accepted / Deprecated / Superseded |
|
|
22
|
-
|
|
23
|
-
**Context:** _What is the issue that we're seeing that motivates this decision?_
|
|
24
|
-
|
|
25
|
-
**Decision:** _What is the change that we're proposing and/or doing?_
|
|
26
|
-
|
|
27
|
-
**Consequences:** _What becomes easier or more difficult to do because of this change?_
|
|
28
|
-
|
|
29
|
-
---
|
|
30
|
-
|
|
31
|
-
_Add new ADRs above this line, incrementing the ID._
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
# Documentation Structure
|
|
2
|
-
|
|
3
|
-
<!-- Populated by `opencastle init` based on project structure. -->
|
|
4
|
-
|
|
5
|
-
Project-specific documentation layout referenced by the `documentation-standards` skill.
|
|
6
|
-
|
|
7
|
-
Documentation files live in the `.opencastle/` directory alongside other project-specific configuration. Key documentation files:
|
|
8
|
-
|
|
9
|
-
- `.opencastle/KNOWN-ISSUES.md` — Tracked issues, limitations, and accepted risks
|
|
10
|
-
- `.opencastle/project/roadmap.md` — Project roadmap and feature status
|
|
11
|
-
- `.opencastle/project/decisions.md` — Architecture Decision Records
|
|
12
|
-
- `.opencastle/LESSONS-LEARNED.md` — Agent knowledge base of retries and workarounds
|
|
13
|
-
|
|
14
|
-
## Directory Tree
|
|
15
|
-
|
|
16
|
-
<!-- Map your project's documentation directory here if one exists -->
|
|
17
|
-
|
|
18
|
-
```
|
|
19
|
-
.opencastle/
|
|
20
|
-
├── KNOWN-ISSUES.md — Tracked issues and limitations
|
|
21
|
-
├── LESSONS-LEARNED.md — Agent knowledge base
|
|
22
|
-
└── project/
|
|
23
|
-
├── roadmap.md — Feature roadmap
|
|
24
|
-
├── decisions.md — Architecture Decision Records
|
|
25
|
-
└── docs-structure.md — This file
|
|
26
|
-
```
|
|
27
|
-
|
|
28
|
-
## Practices
|
|
29
|
-
|
|
30
|
-
- **Check Known Issues** before starting any task
|
|
31
|
-
- **Review Architecture** decisions for context
|
|
32
|
-
- **Update roadmap** after completing features
|
|
33
|
-
- **Add new issues** with: Issue ID, Status, Severity, Evidence, Root Cause, Solution Options
|
|
34
|
-
- **Archive** outdated docs rather than deleting
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
<!-- Populated by `opencastle init` or manually. -->
|
|
2
|
-
|
|
3
|
-
# Project Roadmap
|
|
4
|
-
|
|
5
|
-
High-level roadmap of planned features and improvements. Updated by agents as tasks are completed.
|
|
6
|
-
|
|
7
|
-
## How to Use
|
|
8
|
-
|
|
9
|
-
- **Before implementing a feature:** Check the roadmap for scope, status, and acceptance criteria
|
|
10
|
-
- **After completing a feature:** Mark the item with ✅, add the completion date and tracker issue IDs
|
|
11
|
-
- **When planning:** Add new items with priority and description
|
|
12
|
-
|
|
13
|
-
## Roadmap Items
|
|
14
|
-
|
|
15
|
-
| Status | Priority | Description | Tracker Issues |
|
|
16
|
-
|--------|----------|-------------|----------------|
|
|
17
|
-
| Planned | High | _Example: Short description of the feature_ | — |
|
|
18
|
-
|
|
19
|
-
### Status Values
|
|
20
|
-
|
|
21
|
-
- **Planned** — Scoped but not yet started
|
|
22
|
-
- **In Progress** — Actively being worked on
|
|
23
|
-
- **Done** — Completed and verified
|
|
24
|
-
- **Cancelled** — Removed from scope with documented reason
|
|
File without changes
|