DuanYun

AI Agent OS with visible workflow, real execution, and a 3D office shell. From one sentence to full task lifecycle — plan, run, review, replay

261
Stars
38
Forks
TypeScript
Language
8/23/2026
Added
View on GitHubDownload ZIP

⚠️ Third-Party Software Notice

This skill is third-party open-source software developed and hosted independently on GitHub. SkillTip is an informational directory and does not control or maintain the underlying repository. Any security checks displayed are automated and limited in scope. Review the source code before installing.

Read the Terms of Service

Installation

Add to your Claude Code skills directory:

# Add to your Claude Code skills
git clone https://github.com/xiaojilele-glitch/DuanYun

Getting Started

Guides for using skills like DuanYun.

Security Report

Verified

Last scanned: —

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

README.md

SlideRule

SlideRule · product rehearsal engine
Clarify ideas, ship a runnable product.
把想法问清楚,把产品跑起来

TRAE Skill Challenge / Community Showcase Project · product name SlideRule · sliderule.ai · hosted at xiaojilele-glitch/WhyBuddy (the repo keeps the project's original name)

award

🏆 Winner of the Pioneer Skill Award (先锋技能奖) at the TRAE「一切皆可 Skill · SOLO 技能创作赛」— judged "outstanding in practicality and completeness, with strong promotion value". Entry: From one sentence to executable specs · official announcement

🧭 North Star: "An AI claiming something is done does not count. Only artifacts that pass deterministic gates count."
The single product main line is SlideRule — intent → evidence-gated application rehearsal. /autopilot is the archived v4 demo. See NORTH_STAR.md.

English · 简体中文

live demo repo roadmap contribute

status license stars ts py tests


Why the name

A slide rule is an engineer’s analog calculator: scales, a cursor, and alignment before you trust a number.

SlideRule is the same idea for product decisions — not a magic “one-click app factory,” but a rehearsal instrument:

  • every step is visible
  • every artifact must pass deterministic gates
  • only then does a runnable application appear

If AI says “done,” that still does not count. The gate has to pass.


⚡ 30 Second Overview

You enter one sentence. SlideRule rehearses a complete product plan — then lets you run it.

Five-system model · Evidence-gated artifacts · Publish closure · Browser live runtime

Fully visible · Fully exportable · Fully backed by an evidence trail

🎯 Pain

You spend days writing a PRD, weeks aligning the team, and months before you know whether the direction is even right.

💡 Solution

Enter an idea → one coffee’s worth of real multi-loop deliberation, every step visible → full rehearsal → decide whether it is worth building → if not, move on without months of sunk cost.

What it is / is not

SlideRule isSlideRule is not
A product rehearsal engine (intent → gated plan → previewable app)A pure code agent (Devin / Cursor-style repo labor)
A business-structure generator (data · RBAC · workflow · pages · AIGC)A chatbot / workflow builder alone (Dify / n8n)
A trust-first system: gates, evidence, fail-closed toolsAn unconstrained “vibe UI” generator with no publish bar

Closest mental models people use: “v0/Lovable for the generation surface, Power Platform–like business structure, Manus-like long deliberation — ending in a gated app model, not a git repo.”


🎮 Try It Now (Zero Install)

The static demo runs entirely in your browser — no backend, no key, nothing to install:

What you can do there:

  • Watch a full rehearsal — the main demo card pre-fills a real project intent (community pet-clinic booking & triage); press send and watch the engine reason through six skills to a 6/6 publish closure. Playback is captured from a real end-to-end LLM run, not hand-written.
  • Open finished examples — gallery cards (second-hand instrument consignment · script-murder venue scheduling) open as fully closed rehearsals: read the report, run the generated app, switch roles, drive approvals.
  • BYOK — bring an OpenAI-compatible key (stays in your browser) to run live rehearsals on new topics.

Product Screens

A consolidated 16-screen photo wall from SlideRule example rehearsals.

SlideRule 16-screen product photo wall

Watch the Full Rehearsal Demo

TRAE SOLO-based product rehearsal automation: from a one-sentence idea to executable specs.

TRAE SOLO product rehearsal automation demo video

Click the video cover above to open the Bilibili demo.


⚙️ The V5 Rehearsal Engine

One sentence in → multi-loop reasoning over a capability pool (evidence search, risk analysis, counter-arguments, synthesis, reporting…) → a five-system model (data model · RBAC · workflow · pages · AIGC) → ships only when publish closure holds 6/6 evidence.

An AI claiming something is done does not count. Only artifacts that pass deterministic gates count.

flowchart LR
  U["一句话意图<br/>One-sentence intent"] --> ORCH["Orchestrator<br/>rules + Agentic Pick"]
  ORCH --> PAR["轮内并行批<br/>parallel caps per loop<br/>(synthesis/report barriered)"]
  PAR --> GATE{"证据信任门<br/>structure gates · G-GROUND"}
  GATE -->|gated_pass| STATE[("产物库 STATE<br/>trustLevel · stale tracking")]
  GATE -->|fail| FEED["错误回喂重试<br/>error-fed retry"]
  FEED --> PAR
  STATE --> ECTX["证据上下文管道<br/>evidence context pipeline<br/>(only gated artifacts injected)"]
  ECTX --> PAR
  STATE --> CLOSE{"发布闭环<br/>publish closure 6/6"}
  CLOSE -->|closed| APP["可运行应用<br/>Browser Live Runtime"]
  CLOSE -->|blocked| AWAIT["AWAIT 停泊<br/>clarify → re-enter"]
  AWAIT --> ORCH

What makes it different from “an LLM with a long prompt”:

MechanismWhat it does
Evidence trust gateEvery artifact passes structural + grounding gates before it earns gated_pass; failures re-ask with validator errors
Evidence context pipelineDownstream reasoning is fed only gated upstream artifacts, priority-packed under budget with honest omission notes
Publish closureShips only when all six skills (dataModel · RBAC · workflow · page · AIGC · appBundle) hold evidence — otherwise parks at AWAIT
Real toolsweb.search and code.run (E2B sandbox, fail-closed without a key) via an MCP-style registry
Blind-judged upgradesEngine changes ship with paired blind evals (A/B, position-swapped) — e.g. agentic pick 4:0, evidence pipeline 2:0

Deep dives: [V5.7 architecture (Chinese)](https://github.com/xiaojilele-glitch/DuanYun/blob/main/<./docs/SlideRule V5.7 架构图.md>) · five-system generation eval · live-runtime blueprint


🕹️ Browser Live Runtime

The rehearsed model is not just diagrams — the browser renders it into an operable system. The five-system JSON is the schema: zero backend, zero database for the runtime preview.

Studio home
Studio home — brand sidebar, session gallery, guided examples
X-ray cursor panel
X-ray cursor (游标) — hover any element and read five-system declarations: fields, roles, workflow nodes
Live workflow graph
Live workflow — role-colored nodes; running instances light up their current node
Runnable app, Pro shell
Run the app — Pro shell from the model: charts, tables, forms, approvals

After a topic closes (all state in the browser, per-session):

  • Run the app — desktop / tablet / phone frames, typed forms, detail drawers, approval submissions
  • Switch roles — RBAC locks menus and buttons live; role preview stays in sync both ways
  • Drive approvals — start / approve / reject / branch; the workflow diagram is a live monitor
  • Edit data in place — DataModel table writes the same rows the app reads
  • Try AIGC for real — declared AI capabilities run on the same LLM channel; failures surface honestly
  • Export with evidence — delivery package includes a rehearsal-runtime snapshot

🚀 Quick Start

Option A — Docker, one command (recommended)

Full stack (frontend + Node server + Python rehearsal engine), no local Node/Python needed — and no database for the main line (JSON file store):

git clone https://github.com/xiaojilele-glitch/WhyBuddy.git && cd WhyBuddy

cp .env.example .env      # fill at least LLM_API_KEY (any OpenAI-compatible provider) + SESSION_SECRET
docker compose up -d --build

# open http://localhost:3000/agent-loop/workbench
ServicePortRole
app3000 (host) → 3001Node server + bundled frontend; SlideRule API thin-proxies to Python
python9700 (network-internal)V5 rehearsal engine: five-system generation, evidence trust gates, evidence pipeline, closure

mysql is an optional profile, only for legacy accounts (login / email codes / projects): docker compose --profile accounts up -d.

Sessions and artifacts persist in the named volume sliderule-python-data — rebuilds keep your data.

docker compose logs -f app python   # follow logs
docker compose up -d --build        # rebuild after pulling updates
docker compose down                 # stop (keeps data volumes)
docker compose down -v              # stop and wipe data
📌 Deployment notes
  • Required env: LLM_API_KEY / LLM_BASE_URL / LLM_MODEL (any OpenAI-compatible provider) and SESSION_SECRET (use a 64-char random hex in production). Without an LLM key the stack still boots; rehearsals fall back to deterministic templates.

  • Optional: WEB_SEARCH_API_KEY (grounded web evidence) and E2B_API_KEY (sandboxed code.run) — missing keys fail closed; tools stay unavailable.

  • Port conflicts: change app’s ports mapping in docker-compose.yml (e.g. "8080:3001").

  • Accounts (optional): the rehearsal main line needs no database. Enable accounts with docker compose --profile accounts up -d.

  • Production servers — pull, don’t build: releases to main build images to ghcr.io (.github/workflows/deploy-images.yml). On the server:

    docker compose -f docker-compose.prod.yml pull && docker compose -f docker-compose.prod.yml up -d
    # auto-updates (Watchtower every 5 min):
    docker compose -f docker-compose.prod.yml --profile auto up -d
    # rollback: pin :latest to a release :<commit-sha> in docker-compose.prod.yml
    # slow ghcr (e.g. China): SLIDERULE_REGISTRY=ghcr.nju.edu.cn in .env
    # or Docker Hub dual-push (with secrets configured):
    #   SLIDERULE_IMAGE_APP=docker.io/<hub-user>/whybuddy-app:latest
    #   SLIDERULE_IMAGE_PYTHON=docker.io/<hub-user>/whybuddy-python:latest
    
  • Corporate TLS-intercepting proxies: drop your root CA (.crt PEM) into docker/certs/ before building (see docker/certs/README.md). Certificates are gitignored.

  • Not in compose: Lobster Executor (DinD, opt-in), Redis (off by default), Feishu (mock by default).

  • .env is never baked into images; it is injected at runtime via env_file.

Option B — Local development

git clone https://github.com/xiaojilele-glitch/WhyBuddy.git && cd WhyBuddy
pnpm install
pnpm run dev:all          # full stack: frontend + server + executor

Requirements: Node.js 22+ · pnpm · (optional) Python 3.11+ for the rehearsal engine · (optional) Docker for executor mode.

Option C — Browser only (no server, no .env)

pnpm run dev:frontend     # open http://localhost:3000

Or use the hosted static demo.


🧩 The sliderule Skill Package

Besides the full app, SlideRule ships a self-contained Skill package for Trae, Claude, or any host that supports Agent Skills. One sentence in → a reviewable spec package out (requirements / design / tasks / traceability matrix / UI previews). Every gate is actually run by scriptschecks_ledger.json records each script, exit code, and output.

unzip skills/sliderule.zip
# drop the resulting sliderule/ folder into your agent host's skills directory
# (Trae: Skills · Claude: skill), then give it a one-sentence idea

Setup and package layout: skills/README.md.


📝 Rehearsal Examples

Every rehearsal is shareable content. The first three are live in the static demo — captured from real end-to-end engine runs.

💬 Input📦 Output
"Community pet-clinic booking & triage system"Six-skill playback · 6/6 publish closure · runnable booking/triage app
"Second-hand instrument consignment & appraisal"Closed rehearsal · consignment ledger, appraisal workbench, listing calendar, compliance audit
"Script-murder venue scheduling & party matching"Closed rehearsal · session board, store calendars, sign-up & carpool grouping
"Procurement approval with field-level permissions"Five-system model · approval state machine · RBAC field locks · risk & counter-evidence report

🏗️ System Architecture

Current engine (V5.7, per-increment commit provenance): [docs/SlideRule V5.7 架构图.md](https://github.com/xiaojilele-glitch/DuanYun/blob/main/<./docs/SlideRule V5.7 架构图.md>)

Historical: [V5.6](https://github.com/xiaojilele-glitch/DuanYun/blob/main/<./docs/SlideRule V5.6 架构图.md>) · [V5.5](https://github.com/xiaojilele-glitch/DuanYun/blob/main/<./docs/SlideRule V5.5 架构图.md>) · [V5.4](https://github.com/xiaojilele-glitch/DuanYun/blob/main/<./docs/SlideRule V5.4 架构图.md>) · [V5.3](https://github.com/xiaojilele-glitch/DuanYun/blob/main/<./docs/SlideRule V5.3 架构图.md>) · [V5.2](https://github.com/xiaojilele-glitch/DuanYun/blob/main/<./docs/SlideRule V5.2 架构图.md>) · v4 Skill closed-loop diagram (architecture behind the award-winning Skill package)


🛠️ Tech Stack

LayerTechnology
FrontendReact 19 · Vite · TypeScript · Tailwind · streamdown / assistant-ui · Three.js (R3F)
ServerExpress · Socket.IO · TypeScript (thin proxy to the Python engine)
EnginePython 3.11 · FastAPI · deterministic gates + LLM capability pool
AIOpenAI-compatible APIs (any provider) · BYOK in the browser
Toolsweb.search · code.run (E2B) via MCP-style registry
TestingVitest · pytest · Playwright browser smokes · fast-check (PBT)
StorageJSON session store · MySQL 8 (accounts) · IndexedDB (browser)
DeployDocker Compose · GitHub Pages static demo · GitHub Actions gate

📊 Project Scale

MetricCount
Project files8,194
TypeScript/TSX files2,926
TypeScript lines835,305
Python lines92,137
Test files1,322
Spec directories316

⚔️ How to place SlideRule

These tools solve different jobs. The table is not “we replace them all” — it shows where the rehearsal main line is unique.

CapabilityAgent frameworks
(CrewAI / LangGraph)
Workflow builders
(Dify / n8n)
SlideRule
Open source
Multi-agent / long orchestration⚠️
One sentence → product structure (data · RBAC · flow · pages)
Spec package (requirements · design · tasks · traceability)
Evidence-gated publish closure
Rehearsed model runs as an app in the browser
Replay, audit, human park / re-enter⚠️⚠️
Sandboxed code tools⚠️⚠️
Browser-only demo (zero install)

For generation UX people often compare v0 / Lovable / Bolt; for long visible deliberation, Manus-class agents; for enterprise app structure, Power Platform / low-code. SlideRule’s bet is the intersection: rehearse the business system under gates, then run the model — not only emit code or a chat bot.


🤝 Contributing

1. Fork & clone → pnpm install
2. pnpm run dev:frontend (UI) or pnpm run dev:all (full stack)
3. Before submitting: pnpm run check && pnpm run test

Branch model: main is production; pre_main is daily integration. Merges go through the release gate — a red gate mechanically blocks the merge:

bash scripts/merge-gated.sh <your-branch> "<message>"            # daily → pre_main
bash scripts/merge-gated.sh pre_main "<release message>" main    # release → main

See CONTRIBUTING.md.


⭐ Star History

Every rehearsal is content that helps others discover what is possible. Star this repository to help more people find it.

stars forks watchers

📈 Star growth curve →


SlideRule · sliderule.ai
MIT License · Source: xiaojilele-glitch/WhyBuddy

Frequently Asked Questions

What is DuanYun?

DuanYun is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by xiaojilele-glitch. AI Agent OS with visible workflow, real execution, and a 3D office shell. From one sentence to full task lifecycle — plan, run, review, replay. It has 261 GitHub stars.

Is DuanYun safe to use?

DuanYun failed SkillsLLM's automated security scan, which flagged one or more high-severity issues. Review the Security Report section carefully before using it.

How do I install DuanYun?

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

What programming language is DuanYun written in?

DuanYun is primarily written in TypeScript. It is open-source under xiaojilele-glitch on GitHub, so you can review or fork the full source.

Are there alternatives to DuanYun?

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 DuanYun against similar tools.

Comments (0)

No comments yet. Be the first to share your thoughts!

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 Agentsai-agentsanthropicclaude-code
View details
15

An agentic skills framework & software development methodology that works.

234,96620,863Shell
AI Agentsai-agentsbrainstorming
View details

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 Agentsai-agentsanthropicclaude-code
View details

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 Agentsclaude-codeai-tools
View details

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 Agents
View details

Developers Also Liked

Based on votes and bookmarks from developers who liked this 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 Agentsai-agentsanthropicclaude-code
View details
15

An agentic skills framework & software development methodology that works.

234,96620,863Shell
AI Agentsai-agentsbrainstorming
View details

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 Serversapisai-tools
View details

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 Agentsai-agentsanthropicclaude-code
View details

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 Agentsclaude-codeai-tools
View details
DuanYun — AI Skill for Claude Code | SkillTip