Skip to content

Repository files navigation

JStack

JStack is a local skills workflow for Claude Code and OpenAI Codex. It is inspired by Garry Tan's gstack and Jesse Vincent's Superpowers: gstack's product/strategy and cross-model review ideas, plus Superpowers' disciplined planning, TDD, debugging, and subagent workflows.

This is a personal fork and working system, not an upstream Superpowers release.

What It Does

JStack turns vague coding requests into an evidence-driven workflow:

  1. brainstorming frames the real problem, scope, owner boundary, smallest useful wedge, and success evidence before implementation.
  2. peer-review sends specs and plans to the opposite primary agent for read-only review: Codex asks Claude, Claude asks Codex.
  3. writing-plans creates concrete TDD implementation plans under docs/jstack/plans/.
  4. subagent-driven-development or executing-plans implements the plan with review gates.
  5. peer-review challenge runs an adversarial final review only for live/security/money/state-risk changes.
  6. verification-before-completion keeps completion claims tied to fresh evidence.

The intended high-level flow is:

brainstorming
-> peer-review plan/spec
-> writing-plans
-> peer-review plan
-> implementation
-> risk-based peer-review challenge
-> verification

Key Additions Over The Base

  • Problem Framing Gate: early office-hours-style check for bottleneck, scope, repo ownership, assumptions, smallest evidence-producing wedge, and success evidence.
  • Host-aware peer review: Codex sessions use Claude as reviewer; Claude sessions use Codex as reviewer.
  • Adversarial challenge mode: production-failure review for live trading, transfers, signers, callbacks, exchange state, migrations, and release blockers.
  • Domain/architecture references: optional CONTEXT.md, ADR, tracer-bullet, agent-brief, and architecture-deepening templates keep long plans from carrying repeated vocabulary and stale instructions.
  • JSTACK REVIEW REPORT: specs/plans/CURRENT files can track review status, findings, artifacts, verification, and live evidence.
  • Claude/Codex sync: both primary hosts point at the same local skills source.

Current Local Install

Canonical checkout:

~/.codex/jstack

Compatibility alias:

~/.codex/superpowers -> ~/.codex/jstack

Codex skill discovery:

~/.codex/skills/jstack -> ~/.codex/jstack/skills
~/.agents/skills/jstack -> ~/.codex/jstack/skills

Claude Code plugin:

jstack@jstack-dev enabled
superpowers@claude-plugins-official disabled

Check local sync status:

scripts/sync-local-hosts.sh --dry-run

Apply Codex/Agents symlinks:

scripts/sync-local-hosts.sh --apply

Fresh Install

Clone:

git clone https://github.com/jungsooyun/jstack.git ~/.codex/jstack

Codex:

mkdir -p ~/.codex/skills ~/.agents/skills
ln -s ~/.codex/jstack/skills ~/.codex/skills/jstack
ln -s ~/.codex/jstack/skills ~/.agents/skills/jstack

Claude Code:

claude plugin marketplace add ~/.codex/jstack --scope user
claude plugin install jstack@jstack-dev --scope user
claude plugin disable superpowers@claude-plugins-official

Validate:

claude plugin validate ~/.codex/jstack
claude plugin validate ~/.codex/jstack/.claude-plugin/plugin.json
tests/jstack-static/run.sh

Restart Claude Code and Codex after installation so their skill/plugin discovery refreshes.

Main Skills

Workflow

  • using-jstack - startup discipline and skill routing. Renamed from upstream using-superpowers for namespace consistency under the jstack: prefix.
  • brainstorming - design/spec workflow with Problem Framing Gate and peer-review spec gate.
  • writing-plans - concrete implementation plans with peer-review plan gate.
  • subagent-driven-development - one task at a time with implementer, spec review, code-quality review, and risk-based final challenge.
  • executing-plans - inline/batch execution for smaller or tightly coupled work.
  • peer-review - opposite-agent review, adversarial challenge, artifacts, and triage.
  • project-management - Linear-backed PM layer (capture/next/groom/plan-milestone); Linear is the source of truth for backlog, priorities, and goals. Workspace-level PM (projects/milestones/grooming) runs through the Linear MCP; issue-scoped mutations prefer orca linear when the Orca app is running. Fork-only.

Engineering discipline

  • test-driven-development - red/green/refactor discipline.
  • simplest-thing - simplicity ladder, test qualification gate, and debt: markers.
  • systematic-debugging - root-cause debugging before fixes.
  • architecture-deepening - architecture review vocabulary for deeper modules, interface design, seams, adapters, leverage, and locality.
  • verification-before-completion - evidence before completion claims.
  • using-git-worktrees - isolated workspaces, Orca-first when it manages the repo (monitorable board card per worktree) then native tools, then a git fallback.
  • finishing-a-development-branch - final branch/PR/merge/cleanup choices; reads the linked Linear issue from Orca worktree metadata and removes Orca worktrees via orca worktree rm.

Review handling

  • peer-review — requesting and receiving review are consolidated here (6.0.0)
  • ask-claude remains available as a legacy direct-Claude helper in the wider local skills set, but peer-review is the preferred cross-agent path.

Peer Review Behavior

Use:

Use jstack:peer-review plan on docs/jstack/plans/<file>.md.
Use jstack:peer-review review for the current diff.
Use jstack:peer-review challenge focusing on replay/idempotency bugs.

Routing:

  • In Codex: reviewer is Claude Code CLI.
  • In Claude Code: reviewer is Codex CLI.

Review output should be saved under:

.jstack/artifacts/peer-review-<reviewer>-<mode>-<timestamp>.md

External findings are not orders. The active agent verifies each finding against code, tests, docs, logs, or live evidence before accepting it.

Verification

Run local contract checks:

tests/jstack-static/run.sh
git diff --check

Validate Claude manifests:

claude plugin validate ~/.codex/jstack
claude plugin validate ~/.codex/jstack/.claude-plugin/plugin.json

Check plugin state:

claude plugin list

Updating

cd ~/.codex/jstack
git pull
scripts/sync-local-hosts.sh --apply

Restart Claude Code and Codex after updates that change plugin manifests or skill metadata.

Lineage

JStack is built from a local fork of Superpowers and borrows workflow ideas from gstack. Attribution:

License

MIT License. See LICENSE.

About

Local JStack skills library for Claude Code and Codex workflows

Resources

Code of conduct

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages