Skip to content
cccskills
FreePublished on GitHub

synapse

Codex-led multi-model workflow (Codex + Claude + Gemini). Use when the user asks to run `synapse <cmd> ...` to generate draft diffs/audits and persist artifacts to `./.synapse/**`.

The English summary is being prepared. Showing the original description.

Works withGemini
See how to install

Files included (45)

  • SKILL.md3.6 KB
  • assets/defaults.json800 B
  • assets/ui/index.html23.2 KB
  • references/feat.md213 B
  • references/init.md437 B
  • references/pack.md472 B
  • references/plan.md1.2 KB
  • references/run.md1.5 KB
  • references/ui.md1.2 KB
  • references/verify.md605 B
  • references/workflow.md2.5 KB
  • scripts/_synapse/__init__.py60 B
  • scripts/_synapse/agents_md.py3.6 KB
  • scripts/_synapse/cmd_init.py1.0 KB
  • scripts/_synapse/cmd_pack.py2.3 KB
  • scripts/_synapse/cmd_plan.py5.7 KB
  • scripts/_synapse/cmd_run.py6.9 KB
  • scripts/_synapse/cmd_ui.py6.8 KB
  • scripts/_synapse/cmd_verify.py5.8 KB
  • scripts/_synapse/common.py1.1 KB
  • scripts/_synapse/config.py611 B
  • scripts/_synapse/context_git.py2.2 KB
  • scripts/_synapse/context_pack.py3.6 KB
  • scripts/_synapse/context_queries.py2.0 KB
  • scripts/_synapse/context_rg.py3.5 KB
  • scripts/_synapse/context_sensitivity.py2.8 KB
  • scripts/_synapse/context_snippets.py3.1 KB
  • scripts/_synapse/file_ops.py3.3 KB
  • scripts/_synapse/llm_protocol.py1.8 KB
  • scripts/_synapse/llm_runner.py6.8 KB
  • scripts/_synapse/llm_stream.py899 B
  • scripts/_synapse/llm.py3.5 KB
  • scripts/_synapse/paths.py4.8 KB
  • scripts/_synapse/process_utils.py1.3 KB
  • scripts/_synapse/safety.py2.5 KB
  • scripts/_synapse/state.py6.4 KB
  • scripts/_synapse/storage_paths.py1.9 KB
  • scripts/_synapse/verify/__init__.py35 B
  • scripts/_synapse/verify/dotnet.py454 B
  • scripts/_synapse/verify/golang.py376 B
  • scripts/_synapse/verify/node.py2.4 KB
  • scripts/_synapse/verify/python.py2.2 KB
  • scripts/_synapse/verify/rust.py378 B
  • scripts/_synapse/verify/types.py539 B
  • scripts/synapse.py5.2 KB

SKILL.md (original)

Review the instructions the agent will receive before you install.

Synapse (Codex Skill)

Synapse is a project-local workflow runner driven by Codex (main controller).

Models (roles)

  • Codex (main controller): decides routing, writes prompts, applies final code, runs verification, and delivers
  • Claude: planning/architecture/risks + backend draft diffs + general code audit
  • Gemini: frontend/UI draft diffs + UI/UX + accessibility audit (only when task_type includes frontend)

Artifacts are written under ./.synapse/** in the target project root.

Hard rules (must follow)

  • Only handle requests that start with synapse <cmd> ... (no slash commands).
  • Before running anything: open references/<cmd>.md and summarize (purpose, usage, models, writes/side effects, and any safety/confirmation requirements).
  • If any script-level CLI args are unclear (init/pack/plan/run/verify/ui), run synapse.py <cmd> --help (via uv) and follow the output.
  • Run Synapse scripts via uv:
uv run --no-project python <SKILL_DIR>/scripts/synapse.py --project-dir <PROJECT_DIR> <cmd> ...
  • Treat any external diff as a draft. Do not apply verbatim; Codex rewrites to production quality.
  • Prompts are not hardcoded in scripts. Codex must generate prompts and pass them via synapse run --prompt-file ....
  • workflow/feat are end-to-end (Codex-orchestrated) meta commands. Treat references/workflow.md as the source of truth for the exact steps and Gate requirements (including gate_prep + single-round Gate).
  • task_type rules:
    • If the user explicitly sets --task-type, respect it.
    • If omitted: default to fullstack (info-complete; higher cost) and still present frontend/backend/fullstack options + Codex recommendation at the Gate.
  • Git safety:
    • Prefer a clean working tree. If it's dirty, surface it at the Gate and ask how to proceed (stash/commit/abort).
    • If the project is not a git repo, propose git init at the Gate (review quality is best with git).

Global flags (common)

  • --project-dir <dir>: directory inside the target project (default: .)
  • --resume-gemini <SESSION_ID> / --resume-claude <SESSION_ID>
  • --resume <SESSION_ID>: alias for --resume-gemini (back-compat)
    • If both --resume and --resume-gemini are provided with different values, Synapse errors to avoid silent confusion.

Command map

User-level commands (typed in Codex chat):

  • workflow, feat

Script-level subcommands (Codex runs via uv):

  • init, pack, plan, run, verify, ui

Script guarantees

  • Project root detection: git rev-parse --show-toplevel (fallback: current directory).
  • Artifacts always go under ./.synapse/** (plans/context/logs/patches/state/index).
  • Writes are guarded by assets/defaults.json:safety.allowed_write_roots (hard fail if a write would escape these roots).
  • init only writes: AGENTS.md, .gitignore, ./.synapse/** (idempotent).
  • verify may create project-local toolchain artifacts (lockfiles, .venv/, node_modules/, build outputs) as a side effect.
  • External model calls use local claude + gemini CLIs in stream-json mode (session_id captured; resume supported). Synapse never enables “auto-approve” modes (Gemini runs with --approval-mode default; Claude runs with --permission-mode plan --tools "" --strict-mcp-config).
  • ui starts a local read-only web viewer for .synapse/** (prompts/outputs/patches/logs/state).

Reviews

No reviews yet. Tell others what you thought.

Comments

No login needed. Share how it worked for you, ask a question, or note where it did not run.

No comments yet. Be the first to write one.

Comments are published right away. Do not include personal information such as email addresses or phone numbers. Up to 2 URLs.

0 / 1,000 characters

This form is protected by reCAPTCHA, and the Google Privacy Policy and Terms of Service apply.

Report a problem with this skill