Open-source Claude Code skills — 6 cognitive firewalls block AI hallucination, bias & sloppy reasoning. npx skills add
FAQ
swing-skills is a Claude Code plugin with 6 hand-picked skills for development work, indexed on Flowy. Install it with the command on its page. It includes swing-clarify, swing-mortem, swing-options. Its skills do not fire on their own yet. Request auto-invocation to have Flowy route them as you prompt. Free and open source.
> /plugin marketplace add TheStack-ai/swing-skills> /plugin install stack-skills@stack-skills
Repo: TheStack-ai/swing-skills
Your AI is not swinging at all.
It picks the safe default, agrees when it should push back, cites no sources, hides its reasoning, and assumes everything will work. Six cognitive failures. Six firewalls. Make it swing.
npx skills add thestack-ai/swing-skills --all
Built for Claude Code | Compatible with AI agents via Agent Skills open standard Created by @thestack_ai
You: Is SQLite viable for an app with 1000 concurrent users?
AI: No, SQLite is not suitable for high-concurrency applications. Use PostgreSQL or MySQL instead for production workloads.
swing-researchYou: /swing-research Is SQLite viable for an app with 1000 concurrent users?
AI: Yes, with caveats. 1000 concurrent users ≠ 1000 concurrent writes. Typical web apps generate ~30 concurrent write transactions at this scale. SQLite handles ~120 write transactions/sec in WAL mode (verified: sqlite.org benchmarks + Expensify production case study serving 10M+ users on SQLite). The real constraint is write contention above ~100 concurrent writers, not user count.
Sources: 🏛️ sqlite.org WAL documentation, 🛡️ Expensify engineering blog (2024), ⚠️ HN discussion (corroborated)
The baseline gave a wrong answer confidently. The skill forced source verification and reached the opposite — correct — conclusion.
You: Review this JWT auth module
AI: The code looks well-structured. Consider adding more comments and using TypeScript for better type safety. Variable naming could be improved in some places.
swing-reviewYou: /swing-review Review this JWT auth module
AI: Steel-man: JWT-based stateless auth was chosen for horizontal scaling. The 15-min access + 7-day refresh split balances security and UX.
🔴 Critical: No refresh token rotation. A stolen token grants persistent 7-day access with no detection. Fix: implement token family chain rotation.
🟠 Major: Rate limiting uses in-memory Map(). Resets on restart, bypassed in multi-instance deploys. Fix: move to Redis with TTL.
Verdict: PASS WITH CONDITIONS — must fix token rotation before deploy.
The baseline found nothing. The skill found a Critical security vulnerability.
| Cognitive Failure | What Happens | Firewall | What It Forces |
|---|---|---|---|
| Premature closure | AI rushes to execute on ambiguous requests | swing-clarify | Structured clarification before execution begins |
| Hallucination | AI states claims without verification | swing-research | Source-traced, cross-verified claims with S/A/B/C tier grading |
| Anchoring bias | AI locks onto the first "obvious" answer | swing-options | 5 probability-weighted options including unconventional alternatives |
| Confirmation bias | AI agrees with you instead of challenging | swing-review | Steel-man then 3-vector attack. "Looks good" is structurally banned |
| Black-box reasoning | AI gives conclusions without showing why | swing-trace | Assumption inventory and weakest-link analysis |
| Optimism bias | AI assumes the plan will work | swing-mortem | Assumes failure, identifies 5 specific failure scenarios with circuit breakers |
Prevents premature execution on ambiguous requests.
Request → 5W1H Decomposition → Ambiguity Score → Clarify or Proceed
Try: /swing-clarify Build me an auth system
4-stage verified research pipeline with anti-hallucination safeguards.
Deconstruct → Search & Collect → Cross-Verify → Synthesize
UnverifiedTry: /swing-research Is gRPC better than REST for mobile backends?
Probability-weighted option generator that breaks anchoring bias.
Try: /swing-options Which database for a real-time leaderboard?
Structured Devil's Advocate that finds real problems, not nitpicks.
Try: /swing-review We chose Kubernetes for our 3-person startup
Makes AI reasoning visible, auditable, and decomposable.
Try: /swing-trace Why do you recommend microservices for this project?
Prospective failure analysis — assumes your plan failed and works backward.
Try: /swing-mortem We're migrating our monolith to microservices over Q3
| Your situation | Skill | Example |
|---|---|---|
| Request is vague or has implicit assumptions | swing-clarify | "Build me an auth system" → clarifies SSO? RBAC? OAuth? |
| Researching a technology or verifying a claim | swing-research | "Is gRPC better than REST for mobile?" |
| Reviewing code, architecture, or a decision | swing-review | "We chose Kubernetes for our 3-person startup" |
| Your situation | Skill | Example |
|---|---|---|
| Choosing between options | swing-options | "Which database for real-time leaderboard?" |
| Planning a project, want to de-risk | swing-mortem | "We're migrating to microservices in Q3" |
| Your situation | Skill | Example |
|---|---|---|
| Want to see WHY the AI recommends something | swing-trace | "Why microservices for this project?" |
| Need full audit trail | swing-trace --full | Architecture decision records |
swing-clarify → [any other skill] (always clarify first)swing-clarify → swing-options → swing-research → swing-reviewswing-trace → swing-reviewswing-mortem → swing-options (for mitigations)Your AI's default reasoning:
[Question] ──→ [First plausible answer] ──→ [Ship it]
With Swing:
[Request]
│
├──→ swing-clarify ──→ "What EXACTLY do you need?" (prevents premature closure)
│
├──→ swing-options ──→ "What are ALL the options?" (breaks anchoring)
│
├──→ swing-research ──→ "Is this actually true?" (blocks hallucination)
│
├──→ swing-trace ──→ "WHY do I believe this?" (exposes assumptions)
│
├──→ swing-review ──→ "What's WRONG with this?" (kills confirmation bias)
│
└──→ swing-mortem ──→ "HOW will this FAIL?" (counters optimism bias)
Each firewall is independent — use one, or chain them.
You could paste these instructions into CLAUDE.md or a system prompt. But:
swing-clarify → swing-research → swing-review. A monolithic prompt can't be selectively invoked.npx skills add works across Claude Code, Cursor, Copilot. A system prompt is locked to one tool.npx skills add thestack-ai/swing-skills --all
npx skills add thestack-ai/swing-skills@swing-clarify
npx skills add thestack-ai/swing-skills@swing-research
npx skills add thestack-ai/swing-skills@swing-review
npx skills add thestack-ai/swing-skills@swing-options
npx skills add thestack-ai/swing-skills@swing-trace
npx skills add thestack-ai/swing-skills@swing-mortem
git clone https://github.com/thestack-ai/swing-skills.git
cp -r swing-skills/skills/* ~/.claude/skills/
cp -r swing-skills/skills/swing-review .claude/skills/
| Platform | Status |
|---|---|
| Claude Code | Fully supported |
| Cursor | Compatible (Agent Skills standard) |
| GitHub Copilot | Compatible (Agent Skills standard) |
| Codex CLI | Compatible (Agent Skills standard) |
MIT License. See LICENSE.
Swing by @thestack_ai — 6 cognitive firewalls for your AI.
.claude-plugin/
marketplace.json
plugin.json
.github/
FUNDING.yml
ISSUE_TEMPLATE/
bug_report.md
bug.yml
feature_request.md
feature.yml
PULL_REQUEST_TEMPLATE.md
workflows/
ci.yml
assets/
demo-adversarial.png
demo-creativity.png
demo-full.png
demo-hero.png
devto-15-hidden-claude-code-features-i-actually-use-dail-20260330-195405.png
devto-cover-oci-ai.png
devto-i-gave-my-ai-agent-memory-across-sessions-here-s-t-20260326-092249.png
devto-i-traced-every-ai-agent-call-before-opentelemetry--20260324-101640.png
devto-launching-waypath-0-1-1-a-local-first-external-bra-20260417-144701.png
devto-pulser-20260323-133040.png
devto-pulser-20260323-133411.png
devto-pulser-v0-4-0-your-claude-code-skills-are-probably-20260326-212156.png
devto-see-claude-code-s-reasoning-in-real-time-building--20260430-092305.png
devto-testing-claude-code-skills-in-ci-pulser-eval-githu-20260330-231026.png
devto-your-ai-is-not-swinging-at-all-6-cognitive-firewal-20260428-132645.png
devto-zclean-20260323-134922.png
swing-hero-terminal.png
swing-icon-light.svg
swing-icon.svg
swing-og.svg
CODE_OF_CONDUCT.md
CONTRIBUTING.md
docs/
marketing/
launch-content.md
LICENSE
marketplace.json
package.json
README.ko.md
README.md
SECURITY.md
skills/
swing-clarify/
SKILL.md
swing-mortem/
SKILL.md
swing-options/
SKILL.md
swing-research/
references/
source-tiers.md
SKILL.md
swing-review/
SKILL.md
swing-trace/
SKILL.md© 2026 Flowy · Free and open source
Built for Claude Code · Not affiliated with Anthropic