simulacra

作者 mturac已验证

Ghost personas review your code before it ships. Find edge cases, race conditions, and business logic bugs before production.

57
Stars
0
Forks
2026/8/24
添加时间

⚠️ 第三方软件声明

本 Skill 为第三方开源软件,独立托管于 GitHub。SkillTip 仅为信息目录,不控制或维护底层仓库。所显示的安全检查为自动化且范围有限,安装前请自行审查源码。

阅读服务条款

安装

添加到你的 Claude Code skills 目录:

# Add to your Claude Code skills
git clone https://github.com/mturac/simulacra

快速入门

使用 simulacra 等 Skills 的指南。

安全报告

已验证

上次扫描:—

{
  "status": "PASSED",
  "issues": []
}

README.md

Simulacra

Your code reviewed by ghost personas before it ships.

Before/AfterInstallThe GhostsSkill ScorerHow It WorksBenchmarks

Stars License Agents


Before / After

Without Simulacra — you ship this:

function applyDiscount(cart) {
  if (cart.total >= 500) {
    cart.items.forEach(item => item.price *= 0.8);
  }
  return cart;
}

"Looks fine. Ship it." ✅

With Simulacra — three ghosts find three bugs:

👤 Reckless Rick (The Adversary): "Your forEach mutates prices in place. I hit Back twice — 630 TL cart drops to 322 TL. Your company eats the 308 TL difference."

🔥 IDEMPOTENCY — 🔴 Critical

👤 Corporate Claire (Enterprise Edge): "I'm paying in EUR. cart.total = 200 fails the >= 500 check. My 7000 TRY order gets no discount. I'm switching vendors."

🔥 BUSINESS-LOGIC — 🟠 High

👤 OOM Reaper (Chaos Monkey): "Memory spike at item 7 of 14. Half the cart is discounted, half isn't. No rollback. The corruption persists to your database."

🔥 PARTIAL-FAILURE — 🔴 Critical

Three bugs. Zero lines of test code. Before the PR even opens.


Install

Claude Code (official plugin)

/plugin marketplace add mturac/simulacra
/plugin install simulacra@simulacra
/plugin install skill-scorer@simulacra

Codex CLI

cp -r skills/simulacra ~/.codex/skills/
cp -r skills/skill-scorer ~/.codex/skills/

Cursor / Windsurf / Roo

Copy skills/simulacra/SKILL.md to your project's .cursor/skills/ (or equivalent) directory.

Gemini CLI / OpenCode / GitHub Copilot CLI

cp -r skills/simulacra ~/.config/gemini/skills/   # gemini
cp -r skills/simulacra ~/.opencode/skills/         # opencode

Vercel skills.sh

npx skills add mturac/simulacra

Manual (any agent)

Copy the skills/ folder to your agent's skill directory. The skills are pure markdown — no dependencies, no build step, no runtime.


The Ghosts

Every code review spawns 3 ghost personas by default (up to 7 on request):

GhostPerspectiveHunts For
👤 The AdversaryUser who breaks thingsRace conditions, double-submit, replay attacks, back-button abuse
🏢 Enterprise EdgeComplex business customerMulti-currency, tax exemptions, B2B rules, locale, permissions
🐵 Chaos MonkeyInfrastructure bad dayTimeouts, partial failures, OOM, connection drops, network partitions
🧑‍💻 Junior Dev (+request)Future maintainerReadability, magic numbers, implicit knowledge, missing docs
📈 The Scaler (+request)1000x trafficN+1 queries, unbounded loops, missing pagination, memory growth
🔒 The Auditor (+request)Security & complianceInjection, auth bypass, data exposure, sensitive logging
Time Traveler (+request)6 months from nowDependency rot, API deprecation, schema drift, tech debt

Each ghost produces:

  • Chaos Timeline — step-by-step simulation with realistic timestamps
  • Structured Testimony — what they did, what broke, evidence from your code
  • Bug Report — category, severity, affected line, fix suggestion
  • JSON Output — machine-readable for CI pipelines and issue trackers

Skill Scorer

Bonus skill included. Rate any SKILL.md on a 0-100 scale.

> Score this skill: [paste any SKILL.md]

10 dimensions. Weighted composite. SHIP / REWORK / SCRAP verdict:

ScoreVerdict
80-100🟢 SHIP IT
60-79🟡 REWORK
40-59🟠 MAJOR REWORK
0-39🔴 SCRAP

Calibrated against Anthropic's own skill-creator rubric. Average skill scores 45-55.


How It Works

┌──────────────┐
│  Your Code   │
└──────┬───────┘
       │
       ▼
┌──────────────┐     ┌─────────────────────────┐
│ Complexity   │────▶│ Trivial? → One-line      │
│ Gate         │     │ "Low risk" + stop        │
└──────┬───────┘     └─────────────────────────┘
       │ Non-trivial
       ▼
┌──────────────┐
│ Butterfly    │  6 checks: idempotency, mutation,
│ Effect Scan  │  transactions, races, cache, biz logic
└──────┬───────┘
       │
       ▼
┌──────────────┐
│ Ghost        │  3-7 personas spawned
│ Personas     │  Each with unique failure perspective
└──────┬───────┘
       │
       ▼
┌──────────────┐
│ Structured   │  Timeline + Testimony + Bug Report
│ Simulation   │  per ghost (mandatory slots)
└──────┬───────┘
       │
       ▼
┌──────────────┐
│ Resolution   │  Tier 1: Quick Fix
│ Tiers        │  Tier 2: Robust Architecture
│              │  Tier 3: Generated Test Suite
└──────┬───────┘
       │
       ▼
┌──────────────┐
│ JSON Output  │  Machine-readable bug report
│ + Summary    │  for CI/CD and issue trackers
└──────────────┘

Benchmarks

Simulacra v2 tested against 25 common code snippets with known bugs:

MetricResult
True positives (real bugs found)68/82 (83%)
False positives (fabricated bugs)3/82 (3.7%)
Unique bugs (not caught by linters)41/68 (60%)
Average ghosts needed to find all bugs2.4
Bugs found by Adversary ghost only23
Bugs found by Enterprise ghost only12
Bugs found by Chaos ghost only15

Methodology: 25 TypeScript/Python snippets with seeded bugs (idempotency, race, partial-failure, business-logic). Each run 3x. Scored against known bug list.


Philosophy

Bugs are characters, not warnings. Static analyzers give you lint errors. Simulacra gives you stories. A story about Rick hitting the back button three times is more memorable — and more actionable — than "potential mutation detected."

Silence is better than noise. If a ghost can't find a real bug, it says so. No fabricated issues to seem thorough. The complexity gate ensures trivial code doesn't get forced theater.

Structured output is a first-class citizen. Every simulation produces JSON alongside the narrative. Your CI pipeline can consume it. Your issue tracker can import it. The ghosts are entertaining but the data is what ships.


Star History

Star History Chart


Related

  • hermes-supercode-skills — Claude Code skills for security auditing (security-sentinel), deep debugging (quantum-debugger), and API review (api-sculptor) — complement Simulacra's ghost persona reviews

Contributing

See CONTRIBUTING.md. The easiest way to contribute:

  • Add a new ghost persona
  • Add a demo analysis in skills/simulacra/demo/
  • Score an interesting SKILL.md and add the scorecard to skills/skill-scorer/examples/

License

MIT — see LICENSE.


Built by Mehmet Turac — because production shouldn't be where you find your bugs.

常见问题

What is simulacra?

simulacra is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by mturac. Ghost personas review your code before it ships. Find edge cases, race conditions, and business logic bugs before production. It has 57 GitHub stars.

Is simulacra safe to use?

Yes. simulacra passed SkillsLLM's automated security scan — a dependency vulnerability audit plus prompt-injection heuristics — with no high-severity issues. You can read the full report in the Security Report section on this page.

How do I install simulacra?

Clone the repository with "git clone https://github.com/mturac/simulacra" and add it to your Claude Code skills directory (see the Installation section above).

Are there alternatives to simulacra?

Yes. SkillsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh simulacra against similar tools.

评论 (0)

暂无评论,成为第一个分享想法的人!

ECC

by affaan-m

10

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

242,21936,702JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情
15

An agentic skills framework & software development methodology that works.

234,96620,863Shell
AI 智能体ai-agentsbrainstorming
查看详情

hermes-agent

by NousResearch

10

The agent that grows with you

234,43747,175Python
AI 智能体ai-agentsagent-orchestration
查看详情

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

185,94028,768JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情

cc-switch

by farion1231

3

A cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Grok Build & Hermes Agent. Only official website: ccswitch.io

128,8688,826Rust
AI 智能体claude-codeai-tools
查看详情

claude-code

by anthropics

Claude Code is an agentic coding tool that lives in your terminal, understands your codebase, and helps you code faster by executing routine tasks, explaining complex code, and handling git workflows - all through natural language commands.

120,03119,897Shell
AI 智能体
查看详情

开发者还喜欢

基于喜欢此 Skill 的开发者投票和收藏

ECC

by affaan-m

10

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

242,21936,702JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情
15

An agentic skills framework & software development methodology that works.

234,96620,863Shell
AI 智能体ai-agentsbrainstorming
查看详情

hermes-agent

by NousResearch

10

The agent that grows with you

234,43747,175Python
AI 智能体ai-agentsagent-orchestration
查看详情

n8n

by n8n-io

12

Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.

201,88160,308TypeScript
MCP 服务器apisai-tools
查看详情

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

185,94028,768JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情

cc-switch

by farion1231

3

A cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Grok Build & Hermes Agent. Only official website: ccswitch.io

128,8688,826Rust
AI 智能体claude-codeai-tools
查看详情