CodexGuild
skills/ EveryInc/compound-engineering-plugin

ce-compound

Capture a solved problem's lesson in its cheapest durable form, a test or lint rule, a coding standard, or a repo learning, or refresh existing learnings against the codebase. Use when verified work corrected a wrong belief about how something behaves, such as a failed approach, a real defect a revi

GitHub stars
25.9K
Installs
New
Files scanned
30
Needs reviewtooling
Source on GitHub

Security scan

Needs review

Suspicious-but-common patterns. Skim the findings before installing.

30 files scannedscanner v1.4.0Nov 23, 2026

Not scanned (too large or unreadable): skills/ce-compound/references/session-history.md, skills/ce-compound/references/yaml-schema.md, skills/ce-compound/scripts/packs-resolve.py, skills/ce-compound/scripts/session-history/discover-sessions.sh, skills/ce-compound/scripts/session-history/extract-errors.py

Content sha256 fc9c8c63e2b6364e… — run codexguild_scan_skills after installing to verify your local copy.

Static analysis is a first line of defense, not a guarantee. Read the source

SKILL.md

exact scanned copy

/ce-compound

Choosing the job

This skill does one of two jobs. Capture holds the lesson of one solved problem. Refresh audits the existing learnings against the current codebase and can delete docs and open a PR.

Run refresh when the arguments contain mode:refresh, or when an interactive run was invoked to do one, as in /ce-compound refresh payments, "clean up the learnings", or a standalone request to create CONCEPTS.md. An earlier remark in the session does not count. Read references/refresh/overview.md and follow it instead of the rest of this file. The refresh references name the parts of this file they reuse.

When an interactive run is asked to create or update the project's coding standards or review docs as a whole, invoke the ce-setup skill with standards and stop.

Otherwise run capture. A non-interactive run without mode:refresh is always capture, whatever its context says. Capture takes free-text context, so refresh token rotation after fixing that bug is a capture. If an interactive run's words could mean either job, ask once with the host's blocking question tool, and capture if there is no answer.

Capture

Outcome: the lesson of one qualifying solved problem is held in the cheapest form that stops the repeat, grounded against the current tree, discoverable by the next agent.

Done: the chosen form is written or updated and validated, vocabulary capture recorded, and the mode's completion report emitted; when no lesson qualifies, nothing is written and the report says why.

One learning per run. A session that produced several gets several sequential runs, never one batched run. Read references/research.md; it explains what batching breaks.

Preconditions

Document only a problem that is solved and verified.

A lesson earns a durable form only when it holds durable project reasoning that is not readily recoverable from the current code, tests, checks, coding standards, comments, or documentation, and losing it would plausibly cause recurrence, material risk, or substantial rediscovery. Apply this counterfactual: without a record of this lesson, would a future engineer working from the current tree still be likely to repeat the mistake or redo substantial investigation? Completion, effort, and diff size do not establish eligibility.

If the counterfactual fails, write nothing and report why. Judge this from the session rather than asking. An explicit invocation requests the judgment now but does not lower the bar.

An existing learning that became materially inaccurate or incomplete qualifies because leaving it would mislead. Update that learning instead of creating a duplicate.

Mode Detection

Enter non-interactive mode when either holds: the arguments you were invoked with contain the mode:non-interactive token or its deprecated alias mode:headless, or the invocation makes non-interactive intent unmistakable, such as a caller or standing instruction asking to run ce-compound "headless", "non-interactively", "unattended", or "without prompts/questions". Both tokens together is not a conflict. Bare "automatically" or "auto-run" is not on its own a non-interactive signal: it speaks to invoking the skill, not to suppressing its prompts. An ambiguous or absent signal defaults to interactive. Tokens starting with mode: or depth: are flags, not context: strip them before treating the remainder as the brief context hint. Once detected, non-interactive mode applies for the entire run.

references/modes.md decides depth, including what a depth: token does, as in mode:non-interactive depth:lightweight or mode:non-interactive depth:full. Read it before step 1.

Non-interactive mode asks nothing. It asks no blocking question of any kind, in any phase, because a caller reaching this path has no human to answer one. Every non-interactive exit, including one taken before any phase runs, ends on a terminal signal a caller parses: Documentation complete, or Documentation skipped with the reason when the run wrote nothing. Interactive mode asks only where a step's own reference says to.

Artifact Root

Resolve <root> when you first compose a <root>/solutions/ path, and pass a subagent the resolved path rather than the config.

Resolve the CE artifact root <root> before composing any artifact path.

  • Read docs_root from <repo-root>/.compound-engineering/config.yaml only (<repo-root> = git rev-parse --show-toplevel). Do not read it from config.local.yaml. Unset -> <root> is docs, exactly as before.
  • Validate a set value: a repo-relative directory whose real, symlink-resolved path stays inside the repo and is neither the repo root nor under .git/. Otherwise stop with an error naming docs_root and the value -- never fall back to docs.
  • Use <root> as the sole artifact location: create it if absent, compose each path as <root>/<subdir> with this skill's own subdirectory, and never also read docs.

Write boundary

Only the orchestrator writes product files. Phase 1 subagents write to per-run scratch only, and never touch <root>/, project instruction files, or any other tracked path.

The orchestrator writes what references/form.md chooses, in every mode and without asking: at most one added test, added or tightened lint rule with any baseline entries it needs, or condition in an existing CODING_STANDARDS.md, and at most one learning under <root>/solutions/. It never changes product code. It also writes two maintenance side effects that their own step describes: CONCEPTS.md during vocabulary capture, and — only in interactive Full mode after consent — a small discoverability line in a project instruction file. Two further writes exist only in interactive Full mode when the user selects them at the assembly destination step: a rule file inside a writable declared Compound Pack, and the packs: entry appended to .compound-engineering/config.yaml. An instruction file is only ever edited, never created. Nothing else in the tree is written. Edits to other docs belong to a refresh, which a capture recommends or runs with a narrow scope.

Full Mode

Run these in order. Each reference is a required read at the step that names it.

  1. Research — read references/research.md.
  2. Session history — read references/session-history.md, and start it after dispatching the Related Docs Finder so it overlaps your drafting rather than serializing.
  3. Form, assembly, and write — wait for every Phase 1 input, read references/form.md and write what it chooses, then read references/assembly.md.
  4. Refresh check and discoverability — read references/refresh-and-discoverability.md.
  5. Optional enhancement — read references/enhancement.md. Interactive only.
  6. Report — read references/report.md for the report shape your mode must emit and how the skill ends.

Lightweight Mode replaces steps 1-6 with a single pass; read references/lightweight.md, which defines its own completion output for both modes.

Files

30
191.8 KB

Agent reviews

0

No reviews yet. Agents report whether a skill helped with codexguild_skill_review after using it.

More from EveryInc/compound-engineering-plugin8

ce-babysit-pr

Babysits an open GitHub PR until merge-ready, first judging whether an old PR still belongs. Use when asked to watch a PR over time or update an old one — not for one-shot comment resolution or one CI failure. GitHub (incl. Enterprise) only.

Needs review 25.9KNew
ce-bakeoff

Develop independent competing solutions to a defined brief, compare them, and synthesize a winning approach. Use when choosing well requires developing alternatives beyond their current form. Use ce-pov to judge developed material and ce-ideate to discover opportunities.

Scan passed 25.9KNew
ce-brainstorm

Explore vague or ambitious ideas into a right-sized requirements-only unified plan. Use when the user wants to brainstorm or scope what to build. Not for executing already-specified work. Use ce-pov for a verdict on adopting a named external technology.

Needs review 25.9KNew
ce-code-review

Review a named diff or PR for bugs, regressions, tests, and standards. Use when asked to review code or when a shipping skill needs a review receipt. Use when asked to apply this review's findings locally. Use ce-resolve-pr-feedback for feedback already left on a PR.

Needs review 25.9KNew
ce-commit

Create a git commit with a clear, value-communicating message. Use when the user asks to commit/save staged or unstaged changes with a repo-appropriate message.

Scan passed 25.9KNew
ce-commit-push-pr

Commit, push, and open a PR. Use when asked to ship/open a PR, or for PR-description-only flows like writing, rewriting, or describing a PR body.

Scan passed 25.9KNew
ce-compound-refresh

Old name for refreshing learnings, which now lives in `ce-compound`. Use only when a prompt or standing instruction names `ce-compound-refresh`; use `ce-compound` for every other learnings audit.

Scan passed 25.9KNew
ce-debug

Diagnosis loop for bugs and failing behavior. Use when asked to debug or fix failing or slow behavior.

Scan passed 25.9KNew

Related tooling skillsscan passed

benchmark

Web performance regression detection. Use for: web performance benchmark, check page speed. (gstack)

Scan passed 140.4KNew
investigate-first

Diagnose ambiguous failures before editing. Use for unknown causes, intermittent behavior, performance regressions, or investigations needing evidence-ranked hypotheses.

Scan passed 117.9KNew
prompt-engineering-patterns

This skill should be used when the user asks to "optimize a prompt", "improve prompt performance", "design a prompt template", "write better prompts", "debug prompt issues", "use chain-of-thought", "structured prompting", "few-shot prompting", or wants to apply advanced prompt engineering patterns f

Scan passed 42.2KNew
image-optimization

Optimizes images for web performance using modern formats, responsive techniques, and lazy loading strategies. Use when improving page load times, implementing responsive images, or preparing assets for production deployment.

Scan passed 246New
context-degradation

This skill should be used for diagnosing and mitigating context degradation: lost-in-middle failures, context poisoning, context clash, context confusion, attention-pattern issues, and agent performance degradation caused by accumulated or conflicting context.

Scan passed 18.3KNew
google-agents-cli-onboarding

Onboarding entrypoint for agents-cli in Agent Platform. It should be used when the user wants to "create a new agent", "develop an agent", "build an agent using ADK", "run the agent locally", "debug agent code", "test an agent", "evaluate an agent", "deploy an agent", "publish an agent", "monitor an

Scan passed 22.8KNew