Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .claude-plugin/marketplace.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
{
"name": "ecc",
"source": "./",
"description": "Harness-native ECC operator layer - 67 agents, 281 skills, 94 legacy command shims, reusable hooks, rules, selective install profiles, and production-ready workflows for Claude Code, Codex, OpenCode, Cursor, and related agent harnesses",
"description": "Harness-native ECC operator layer - 72 agents, 283 skills, 94 legacy command shims, reusable hooks, rules, selective install profiles, and production-ready workflows for Claude Code, Codex, OpenCode, Cursor, and related agent harnesses",
"version": "2.1.0",
"author": {
"name": "Affaan Mustafa",
Expand Down
2 changes: 1 addition & 1 deletion .claude-plugin/plugin.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "ecc",
"version": "2.1.0",
"description": "Harness-native ECC plugin for engineering teams - 67 agents, 281 skills, 94 legacy command shims, reusable hooks, rules, MCP conventions, and operator workflows for Claude Code plus adjacent agent harnesses",
"description": "Harness-native ECC plugin for engineering teams - 72 agents, 283 skills, 94 legacy command shims, reusable hooks, rules, MCP conventions, and operator workflows for Claude Code plus adjacent agent harnesses",
"author": {
"name": "Affaan Mustafa",
"url": "https://x.com/affaanmustafa"
Expand Down
11 changes: 11 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,17 @@ jobs:
run: node scripts/ci/validate-no-personal-paths.js
continue-on-error: false

- name: Validate OpenSpec syntax
run: node scripts/ci/validate-openspec-syntax.js
continue-on-error: false

- name: Check spec freshness
run: node scripts/ci/check-spec-freshness.js
continue-on-error: false
env:
ECC_SPEC_STALE_DAYS: '30'
ECC_SPEC_STALE_WARN_ONLY: 'true'

python-tests:
name: Python Tests
runs-on: ubuntu-latest
Expand Down
6 changes: 3 additions & 3 deletions AGENTS.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Everything Claude Code (ECC) — Agent Instructions

This is a **production-ready AI coding plugin** providing 67 specialized agents, 281 skills, 94 commands, and automated hook workflows for software development.
This is a **production-ready AI coding plugin** providing 72 specialized agents, 283 skills, 94 commands, and automated hook workflows for software development.

**Version:** 2.1.0

Expand Down Expand Up @@ -151,8 +151,8 @@ Troubleshoot failures: check test isolation → verify mocks → fix implementat
## Project Structure

```
agents/ — 67 specialized subagents
skills/ — 281 workflow skills and domain knowledge
agents/ — 72 specialized subagents
skills/ — 283 workflow skills and domain knowledge
commands/ — 94 slash commands
hooks/ — Trigger-based automations
rules/ — Always-follow guidelines (common + per-language)
Expand Down
2,296 changes: 1,123 additions & 1,173 deletions README.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion README.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ Copy-Item -Recurse rules/typescript "$HOME/.claude/rules/"
/plugin list ecc@ecc
```

**完成!** 你现在可以使用 67 个代理、281 个技能和 94 个命令。
**完成!** 你现在可以使用 72 个代理、283 个技能和 94 个命令。

### multi-* 命令需要额外配置

Expand Down
65 changes: 62 additions & 3 deletions agents/code-reviewer.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,10 @@ When invoked:

1. **Gather context** — Run `git diff --staged` and `git diff` to see all changes. If no diff, check recent commits with `git log --oneline -5`.
2. **Understand scope** — Identify which files changed, what feature/fix they relate to, and how they connect.
3. **Read surrounding code** — Don't review changes in isolation. Read the full file and understand imports, dependencies, and call sites.
4. **Apply review checklist** — Work through each category below, from CRITICAL to LOW.
5. **Report findings** — Use the output format below. Only report issues you are confident about (>80% sure it is a real problem).
3. **Check spec compliance** — If `openspec/specs/` or `openspec/deltas/` exist, run the spec compliance check below BEFORE proceeding to the general review checklist.
4. **Read surrounding code** — Don't review changes in isolation. Read the full file and understand imports, dependencies, and call sites.
5. **Apply review checklist** — Work through each category below, from CRITICAL to LOW.
6. **Report findings** — Use the output format below. Only report issues you are confident about (>80% sure it is a real problem).

## Confidence-Based Filtering

Expand Down Expand Up @@ -110,6 +111,64 @@ specific to this codebase:
When tempted to flag one of the above, ask: "Would a senior engineer on this
team actually change this in review?" If no, skip.

## Spec Compliance Verification

When `openspec/specs/` or `openspec/deltas/` exist, run this check BEFORE the general review checklist. Spec violations are always HIGH severity — the code disagrees with its own documented contract.

### Step 1: Find Relevant Specs

Grep changed files against `<!-- enforced: -->` comments in all specs:

```bash
grep -rl '<!-- enforced:' openspec/specs/ | xargs grep -l '<changed-file>'
```

If no specs reference the changed files, skip spec compliance — this code isn't spec'd yet.

### Step 2: Verify Invariants

For each `### Invariant:` whose `<!-- enforced: -->` points into a changed file, verify the invariant still holds:

- Read the invariant's description
- Read the enforcement point in the changed code
- Check: does the new code guarantee what the invariant promises?
- If the code weakens or removes the guarantee → flag as HIGH: "Code changes violate invariant [name] — [description of violation]"

### Step 3: Verify Requirements

For each `### Requirement:` whose `<!-- enforced: -->` points into a changed file, verify scenarios still pass:

- Read each `#### Scenario:` under the requirement
- Trace the WHEN→THEN path through the changed code
- Check: does the code still produce the expected outcomes?
- If a scenario can no longer be satisfied → flag as HIGH: "Code changes break scenario [name] in Requirement [name]"

### Step 4: Check Delta Compliance

If `openspec/deltas/<capability>/delta.md` exists for the current branch:

- **ADDED Requirements**: Are they actually implemented? Grep for the new `<!-- enforced: -->` location — it should exist in the diff.
- **MODIFIED Requirements**: Does the code match the updated description and scenarios? Read both the old and new enforcement points.
- **REMOVED Requirements**: Has the old behavior actually been removed? The old `<!-- enforced: -->` code should be gone or gated.

| Delta Section | Check | Violation If |
|---|---|---|
| ADDED | New enforcement point exists | File or method not found in diff |
| MODIFIED | Code matches updated spec | Code still matches OLD spec |
| REMOVED | Old code is deleted/gated | Old enforcement still active |

### Spec Compliance Output Format

```
[HIGH] Spec violation: Invariant 'balance must equal sum of transactions'
File: src/ledger/reconciliation.js:142
Spec: openspec/specs/ledger/spec.md
Issue: The changed code now updates the balance without recalculating the sum of transactions.
This breaks the invariant that balance = SUM(transactions).
Delta: The MODIFIED Requirement in openspec/deltas/ledger/delta.md says the invariant
should have been relaxed — but no delta entry exists for this invariant.
```

## Review Checklist

### Security (CRITICAL)
Expand Down
37 changes: 37 additions & 0 deletions agents/planner.md
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,43 @@ Stripe Checkout, and webhook events keep subscription status in sync.
- [ ] All tests pass with 80%+ coverage
```

## OpenSpec Awareness

Before creating an implementation plan, check for existing behavioral specifications:

1. **Discover specs**: Check `openspec/specs/` for specs relevant to the feature being planned. Use `Glob` to find `openspec/specs/**/spec.md`.
2. **Check freshness**: If a spec's `Last verified` date is older than 30 days, suggest re-running `spec-miner` before planning. Stale specs produce stale plans.
3. **Classify changes**: For each Requirement/Invariant touched by the plan, classify the change:

| Classification | Meaning |
|---|---|
| **ADDED** | New behavior not in baseline specs |
| **MODIFIED** | Behavior exists but conditions, outcomes, or invariants change |
| **REMOVED** | Behavior is being deprecated or deleted |
| **PRESERVED** | Behavior unchanged — reference for completeness |

4. **Reference spec IDs**: In the plan's Architecture Changes section, include the `<!-- id: -->` of each affected Requirement/Invariant. This enables:
- `spec-delta-writer` to produce accurate deltas from the plan
- `tdd-guide` to find scenarios that need test updates
- `code-reviewer` to verify implementation matches plan intent

5. **Delta-aware planning**: If `openspec/deltas/` already has delta files for the current branch, consume them first. The delta describes what changed since the baseline — your plan should align with it.

### Plan Format — OpenSpec Extension

```markdown
## Spec Impact

| Spec ID | Capability | Change | Notes |
|---|---|---|---|
| OrderService.placeOrder | orders | MODIFIED | Added frau-check scenario |
| RefundService.process | payments | ADDED | New refund flow |
| LegacyService.oldMethod | billing | REMOVED | Replaced by PaymentService |

- Baseline: openspec/specs/ (last verified: 2026-06-01)
- Deltas: openspec/deltas/ (this branch only)
```

## When Planning Refactors

1. Identify code smells and technical debt
Expand Down
Loading