/episteme:swing-review [code/decision/PR to stress-test]from episteme
Stress-tests code, architecture, PRs, and decisions using structured adversarial analysis. Use for high-stakes review or when users want problems found deliberately.
Ships in episteme. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Structured Devil's Advocate analysis that surfaces hidden flaws, edge cases, and blind spots.
If the subject under review is unclear or too broad, ask one clarifying question before proceeding. Do not review a vague target. Examples of ambiguous input that should trigger a clarification question:
One question. Get the answer. Then proceed.
If a captured scope exists (swing-clarify output, PLAN success criteria, declared
boundaries), check the delivery against it FIRST: each criterion [MET / PARTIAL / NOT MET], each boundary [RESPECTED / VIOLATED]. A beautifully-built wrong thing
must fail here — the quality vectors below are blind to scope drift. Do NOT
fabricate criteria when none were captured: state "no captured scope; Phase 0
skipped" and move on.
Before any criticism, articulate:
This ensures the subsequent critique is intellectually honest, not reflexive opposition.
Apply three independent attack vectors simultaneously:
Scope: Does the REASONING hold? Examine premises, conclusions, logical flow.
Scope: Does it SURVIVE reality? Test against real-world conditions.
Scope: Is the STRUCTURE sound? Examine architecture and design.
The three vectors above are self-generated — the reviewing model shares the
author's blind spots. Scan the subject for the trigger keywords in
blind-spots.md (this skill's directory) and run every matched entry's check as
an additional review question. These are externally curated operational
perspectives (rollback-schema divergence, tenant isolation, thundering herds,
credential MTTR…) that in-model adversarial method cannot manufacture. Report
matched-and-cleared as well as matched-and-hit.
Classify every finding:
| Severity | Symbol | Meaning | Action Required |
|---|---|---|---|
| Critical | 🔴 | Will cause production issues, security vulnerabilities, or data loss | Must fix before merge/deploy |
| Major | 🟠 | Significant risk, performance issue, or maintainability problem | Should fix, blocking for merge |
| Minor | 🟡 | Code smell, style issue, or small optimization opportunity | Consider fixing, non-blocking |
| Note | 💡 | Observation, alternative approach, or future consideration | Informational only |
For each Critical and Major finding, provide:
## Adversarial Review: [Subject]
### Steel-Man
> [Why this approach makes sense — strongest justification]
### Findings
#### 🔴 Critical: [Title]
**Vector:** [Logical Soundness / Edge Case / Structural Integrity]
**What:** [Description]
**Impact:** [Concrete consequence]
**Fix:** [Proposed solution]
**Trade-off:** [Cost of the fix]
#### 🟠 Major: [Title]
...
#### 🟡 Minor: [Title]
...
#### 💡 Note: [Title]
...
### Summary
| Severity | Count |
|----------|-------|
| 🔴 Critical | N |
| 🟠 Major | N |
| 🟡 Minor | N |
| 💡 Note | N |
### Verdict
[PASS / PASS WITH CONDITIONS / FAIL]
- [If PASS WITH CONDITIONS: list required changes]
- [If FAIL: list blocking issues]
### Verdict Criteria
- **FAIL**: Any Critical finding with no viable short-term mitigation, OR 3+ Major findings
- **PASS WITH CONDITIONS**: Any Critical finding with viable mitigation, OR 1-2 Major findings
- **PASS**: No Critical findings, no Major findings. Minor and Notes only.
These thresholds ensure consistent verdicts across invocations.
### Hidden Assumptions Exposed
- [Assumption 1 that the current approach relies on]
- [Assumption 2 that could invalidate the approach if wrong]
## Adversarial Review: User Auth Module
### Steel-Man
> It works.
### Findings
#### 🟡 Minor: Variable naming
**Vector:** Structural Integrity
**What:** Some variables could be named better.
**Impact:** Readability.
**Fix:** Rename them.
**Trade-off:** Time.
#### 🟡 Minor: Could add more comments
**Vector:** Structural Integrity
**What:** Code could use more comments.
**Impact:** Future developers might be confused.
**Fix:** Add comments.
**Trade-off:** None.
#### 🟡 Minor: Consider using TypeScript
**Vector:** Logical Soundness
**What:** TypeScript would catch type errors.
**Impact:** Fewer runtime bugs.
**Fix:** Migrate to TypeScript.
**Trade-off:** Migration effort.
### Verdict: PASS
Why this is bad:
## Adversarial Review: User Auth Module
### Steel-Man
> JWT-based stateless auth was chosen to avoid session storage overhead and
> enable horizontal scaling. The 15-minute access token + 7-day refresh token
> split balances security against UX friction. Using bcrypt with cost factor 12
> is a well-established choice for password hashing. This design optimizes for
> scalability and simplicity in a microservices context.
### Findings
#### 🔴 Critical: No refresh token rotation enables silent session hijacking
**Vector:** Edge Case
**What:** Refresh tokens are long-lived (7 days) and not rotated on use.
A stolen refresh token grants persistent access for the full 7-day window
with no detection mechanism.
**Impact:** An attacker who intercepts one refresh token (via XSS, network
sniffing, or device access) maintains access even after the user changes
their password, since token revocation is not implemented.
**Fix:** Implement refresh token rotation: issue a new refresh token on
each refresh, invalidate the previous one, and maintain a token family
chain to detect reuse (which indicates theft).
**Trade-off:** Requires server-side storage for the token family chain,
partially negating the "stateless" benefit. Adds ~50ms per refresh request.
#### 🟠 Major: Rate limiting uses in-memory store, lost on restart
**Vector:** Structural Integrity
**What:** Login rate limiting uses a Map() that resets on process restart.
**Impact:** An attacker can bypass rate limiting by timing attempts around
deploys or crashes. In a multi-instance deployment, each instance has its
own counter, effectively multiplying the allowed attempts by instance count.
**Fix:** Move rate limit state to Redis with TTL-based expiry.
**Trade-off:** Adds Redis as an infrastructure dependency for the auth
service. ~2ms latency per rate limit check.
### Verdict: PASS WITH CONDITIONS
- Must implement refresh token rotation before production deploy
- Should migrate rate limiting to shared store before scaling to >1 instance
Why this is good:
When reviewing code (files, PRs, diffs):
When reviewing architecture/design decisions:
When reviewing pull requests:
swing-research — it investigates neutrally; this skill challenges)superpowers:brainstorming)swing-research → swing-reviewwhynowlab/swing-skillsblind-spots.md, provenance escalation, completeness ladder, blinded-vs-cross-critique panel note) adapted from the retired octo plugin 9.4.2 (nyldn-plugins) — see skills/vendor/SOURCES.md.What SKILL.md sets; muted values are Claude Code's defaults
11 skills in this plugin
/episteme-eventRun one bounded episteme Event end-to-end — branch, implement, verify, PR, merge, sync, doctor — with the repo's release and hook machinery handled correctly. Use when starting or closing a unit of work in the episteme repo (or any repo adopting its flow). Triggers on "new event", "이벤트 시작", "PR까지", "merge하고 sync", "release", "릴리즈", "브랜치 파서 작업"./epistemic-interrogationSenior-researcher interrogation of a load-bearing decision or conclusion — decompose into claims, verify the load-bearing ones in a fresh context with external evidence, argue the opposition, name the weakest link, pre-commit disconfirmation, record the verdict artifact the episteme gate reads./overnight-loopDesign and run unattended or long-horizon loops (overnight hardening, drain queues, iterative sweeps) with a written invariant the harness re-reads every iteration — no manual re-pasting, trustworthy metrics, explicit stop conditions, and correct model routing. Replaces bounded-loop-runner. Use for "overnight", "unattended", "keep iterating until", "밤새 돌려", "루프 돌려", ralph-loop or /loop driven work./progress-handoffUpdate progress and next-step docs so the next agent or session can resume with minimal context loss./reasoning-surfaceAuthor the episteme gate artifact (.episteme/reasoning-surface.json) correctly on FIRST contact — schema, lens order, honest values, strict-vs-advisory, and when to escalate to epistemic-interrogation instead. Use the moment a PreToolUse hook reports a missing or stale Reasoning Surface, or BEFORE starting a session's first high-impact operation. Triggers on "reasoning surface", "Episteme Strict Mode", "surface stale", "blocked by episteme", "게이트 막힘", "서피스 갱신"./repo-bootstrapBootstrap a repository with the standard episteme scaffold and verify the core memory files exist.npx claudepluginhub junjslee/episteme --plugin epistemeOther plugins' skills for the same job