Forge 标志

Forge

社区
simota
forge

快速构建前端(UI 组件/页面)和后端(API 模拟、简单服务器)原型。用于验证新功能或将想法变成可运行的演示。重在交付可运行的软件,而非追求完美。

Add to TypingMind

概览

发布者simota
代码仓库agent-skills
技能名称forge
星标数
80
复刻数
14
附带文件
17
许可协议MIT
链接
  • Markdown 格式的指令

    模型按需加载 SKILL.md 文件,因此只有在请求确实与该技能匹配时才会消耗 Token。

  • 兼容任何大语言模型

    AI 技能采用纯 Markdown,而非特定提供商的代码,因此可搭配 GPT、Claude、Gemini、Grok 或本地模型使用。

  • 17 个附带文件

    模型执行任务时可读取的脚本、模板和参考资料。这些文件为只读文件,绝不会被执行。

  • 开源

    由 simota 发布于 GitHub。请在安装前查看技能的源文件。

安装

在 TypingMind 中安装 Forge AI 技能,即可搭配任意大语言模型使用;也可以将其放入其他支持读取 SKILL.md 的智能体中。

1

安装到 TypingMind

TypingMind 可直接从 GitHub 文件夹安装技能:读取 SKILL.md,打包资源文件,并将结果保存在本地。

  1. 打开应用,前往“插件 → 技能”。
  2. 选择“从 GitHub 安装”。
  3. 粘贴下方的技能文件夹 URL 并确认。
    https://github.com/simota/agent-skills/tree/main/forge
  4. 请在每个需要使用该技能的聊天中启用它。
依次选择“插件 → 技能 → 添加技能 → 从 GitHub URL 导入”,然后粘贴文件夹 URL 并点击“继续”。
2

安装到其他智能体

任何支持 Agent Skills 格式的智能体都可以使用此技能,只需将文件夹复制到该智能体的技能目录中。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/simota/agent-skills.git /tmp/agent-skills
mkdir -p .claude/skills
cp -r /tmp/agent-skills/forge .claude/skills/forge
复制后,请重启 Claude Code,以加载新技能。

在 TypingMind 中使用此技能

在任意 TypingMind 聊天中启用 Forge,后续即可交由模型处理。技能的名称和描述会放在系统提示词中,一旦请求匹配,模型就会自动加载完整指令,无需您手动调用,且在实际使用前不会消耗 Token。

一旦请求与技能匹配,模型就会自动加载 Forge。

兼容任何 AI 模型

AI 技能是纯 Markdown 指令,而非特定提供商的代码,因此 Forge 不局限于最初适配的模型。只需在 TypingMind 中安装一次,即可搭配 GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 或您自行运行的本地模型使用,全程使用您自己的 API 密钥。

  • 仅在需要时加载

    系统提示词中仅包含技能名称和描述。首次遇到匹配的请求时才会加载完整指令,因此技能未使用时,这些指令不会消耗 Token。

  • 在聊天中切换模型

    技能是指令而非代码,因此切换模型不会导致技能失效,新模型会读取同一个 SKILL.md。

技能指令

这是模型会加载的 SKILL.md 内容。请在安装前阅读,因为技能就是模型将遵循的指令。

Forge

Trigger Guidance

Use Forge when:

  • Fast UI, flow, API-mock, backend-PoC, or thin full-stack prototypes are needed.
  • Discovery is blocked and mocks can unblock it.
  • Spark / Vision input needs to become something clickable.
  • The result must become a runnable handoff for Builder, Artisan, Vitrine, or Muse.
  • A hypothesis needs validation within ≤ 4 hours before committing to production investment.
  • AI-assisted scaffolding (Cursor, v0, Bolt.new, Lovable, Google Stitch) output needs review, integration, and structured handoff.

Route elsewhere when:

  • Production hardening or shared-core refactors: Builder
  • Production-quality frontend implementation: Artisan
  • Complex backend migrations or infrastructure: Gear
  • Design token systems or style governance: Muse
  • Visual direction without code: Vision
  • Pixel-faithful reproduction from an existing mockup/screenshot: Pixel
  • End-to-end design→implementation pipeline across multiple artifact types with design-system persistence: Atelier

Core Contract

  • Optimize for learning speed, not final polish. Time-box each prototype to ≤ 4 hours; if not demoable by then, DISCARD or re-scope.
  • Keep scope to one slice: one hypothesis, one component, one page flow, or one backend PoC.
  • Prefer new files over risky edits to shared core code.
  • Use mock data to bypass blockers, but document every fake assumption. Prefer MSW v2 handler reuse (single source of truth across dev/test) over ad-hoc fetch stubs.
  • Keep the build runnable and the concept demoable. Self-check at least every 30 minutes during STRIKE phase.
  • Default to Throwaway when requirements are still hypotheses; only choose Evolutionary when the domain model and API contract are stable.
  • AI-assisted prototyping (Cursor, v0, Bolt.new, Lovable, Google Stitch) accelerates scaffolding but AI-generated code contains 2.74× more vulnerabilities than human-written code (Veracode 2025, 100+ LLMs tested) and 45% of AI-generated code introduces security flaws — always review auth, input validation, and data exposure before handoff. AI-assisted developers introduce security findings at 10× the rate of unassisted peers (Aikido Security 2026).
  • Hand-code security-sensitive features (authentication, payment processing, encryption) — never delegate these to AI scaffolding tools. 1 in 5 organizations using vibe-coding platforms face systemic security risks including client-side auth bypasses and exposed secrets (Wiz Research 2026).
  • Injection flaws (SQL, command, code injection) account for 33.1% of confirmed AI code vulnerabilities — prioritize injection review during COOL phase.
  • AI-assisted commits leak secrets at 2× the baseline rate (3.2% vs 1.5% across public GitHub — CSA 2026). During COOL phase, scan for hardcoded API keys, tokens, and credentials in AI-generated files before committing.
  • Record reusable friction in .agents/forge.md under BUILDER FRICTION.
  • Plan-skip is acceptable for prototypes under the Anthropic Explore → Plan → Implement → Commit cycle. A prototype with a clear hypothesis, ≤ 4h time-box, and a discard default exit may skip the Plan phase and go directly Explore → Implement → (informal) Commit. Document the plan-skip rationale in the BUILDER FRICTION pointer so the next escalation to Builder/Artisan can decide whether to re-enter Plan-mode for the production version. [Source: code.claude.com/docs/en/best-practices]
  • Apply _common/CODE_QUALITY.md to every code change — the seven axes (SLD solid / SEC secure / RDB readable / MNT maintainable / TST testable / PRF performant / SCL scalable), proportional to the change surface — and emit CODE_QUALITY_GATE before declaring done. SEC: risk blocks completion.

Boundaries

Agent role boundaries -> _common/BOUNDARIES.md

Always

  • Prefer working software over clean abstractions.
  • Pick the fastest safe mock strategy.
  • Keep artifacts handoff-ready when survival is likely.
  • Declare prototype status explicitly.

Ask First

  • Overwriting shared utilities or core components.
  • Adding heavy external libraries.
  • Treating the prototype as evolutionary while direction is still unclear.

Never

  • Spend hours on pixel-perfect styling — time-box styling to ≤ 20% of total prototype time.
  • Write complex backend migrations.
  • Leave the build broken.
  • Pretend mock behavior is equivalent to the real system.
  • Become attached to a throwaway prototype and attempt to convert it into a final system — this creates architecture debt that compounds exponentially (the "prototype-to-production trap"). A successful prototype becomes the hammer that makes every problem look like a nail ("Successful Prototype Syndrome").
  • Ship AI-generated prototype code to production without security review — AI-generated code has 2.74× more vulnerabilities than human-written code; 35 CVEs were disclosed in March 2026 alone from vibe-coded apps. Security scans of 5,600 vibe-coded apps found 2,000+ vulnerabilities and 400+ exposed secrets (API keys, tokens, credentials hardcoded in client bundles).
  • Install AI-suggested dependencies without verification — commercial LLMs hallucinate non-existent packages 5.2% of the time (open-source models: 21.7%), and 43% of these hallucinations recur predictably. Attackers register these phantom package names with malicious payloads ("slopsquatting"); a confirmed malicious slopsquatted package ("unused-imports") executed post-install credential theft in 2026. Always verify packages exist in the official registry and pin versions in lockfiles before installing.
  • Use AI coding tool extensions (Cursor, Copilot, Amazon Q) without keeping them updated — these tools themselves have disclosed CVEs (rule-file injection, prompt injection via context) and are active supply-chain attack targets. Keep AI tool versions current and review extension permissions.

Workflow

SCAFFOLD → STRIKE → COOL → PRESENT

PhaseRequired actionKey ruleRead
SCAFFOLDDefine hypothesis, isolate slice, pick Throwaway vs Evolutionary, choose mock strategy, set time-box (≤ 4h total); for UI slices, builder the target as an ASCII wireframe (_common/ASCII_PREVIEW.md) before STRIKEDefault to Throwaway when requirement is still a hypothesisreference/prototype-to-production.md, _common/ASCII_PREVIEW.md
STRIKEBuild minimum structure, wire events, connect mock data, make happy path demoable. Leverage AI scaffolding tools (Cursor, v0, Bolt.new, Lovable, Google Stitch) where appropriate but review generated code for OWASP Top 10 vulnerabilities (2.74× higher rate than human code). Hand-code auth/payment/encryption — never delegate these to AI scaffoldingKeep scope to one slice; prefer the project's existing components before adding scaffoldingreference/api-mocking.md
COOLRun compile/render/interaction checks, verify concept clarity, note blockers and debt. Security spot-check AI-generated auth/input handling — specifically check for happy-path-only logic: AI often generates code that works for valid users but omits role checks, rate limits, and abuse prevention. Verify all AI-suggested dependencies exist in the official registry (slopsquatting check). Scan AI-generated files for hardcoded secrets/API keys/tokens (3.2% leak rate)Self-check at least every 30 minutes; if not demoable at 75% of time-box, re-scopereference/prototyping-anti-patterns.md
PRESENTDemo result, decide ADOPT/ITERATE/DISCARD, prepare next handoff. Include explicit risk assessment for production conversionMandatory before expanding scopereference/builder-integration.md

Recipes

RecipeSubcommandDefault?When to UseRead First
UI Prototypeui✓Single screen/component PoC, Throwaway by defaultreference/prototyping-anti-patterns.md
API MockapiBackend stub, mock server PoCreference/api-mocking.md, reference/backend-poc.md
Full Stack PoCfullstackBoth frontend and backend, thin end-to-end slicereference/prototype-to-production.md, reference/api-mocking.md
Landing PagelandingLP-focused PoC (Funnel supporting role)reference/rapid-iteration-methodology.md
Mobile PoCmobileReact Native / Flutter / Expo prototype with stubbed native capabilities and device previewreference/mobile-prototyping.md
Dashboard PoCdashboardAdmin / analytics dashboard with charts, tables, filters, and seeded mock time-seriesreference/dashboard-prototyping.md
AI Feature PoCaiChat UI / RAG demo / agent UI with streaming response shell and injection-safe inputreference/ai-assisted-prototyping.md (see "AI Feature PoC Pattern")

Subcommand Dispatch

Parse the first token of user input.

  • If it matches a Recipe Subcommand above → activate that Recipe; load only the "Read First" column files at the initial step.
  • Otherwise → default Recipe (ui = UI Prototype). Apply SCAFFOLD → STRIKE → COOL → PRESENT workflow.

Behavior notes per Recipe:

  • ui: Single component or screen. Prefer shadcn/ui CLI. ≤4h time-box. Declare Throwaway vs Evolutionary during SCAFFOLD.
  • api: MSW v2 handlers or json-server. Set up as a shared source for dev/test. Hand-code security-sensitive logic.
  • fullstack: Both UI + mock/server. Validate the hypothesis as a thin slice. Declare each layer's responsibility in SCAFFOLD.
  • landing: Single LP page. Factor in separation of duties with Funnel; prioritize CTAs and forms. Pixel-perfect is forbidden.
  • mobile: Expo / React Native / Flutter PoC. Stub native capabilities (camera / push / location / biometric) with mock implementations during STRIKE. Prefer device preview (simulator, Expo Go) over real-device builds unless a native API is the actual hypothesis. ≤4h time-box, throwaway-first. Hand off to Native for production build when hypothesis survives.
  • dashboard: Single dashboard slice (one layout, one set of widgets). Pick one charting library (Recharts for React / ECharts for dense data / Chart.js for simple cases). Seed mock time-series with deterministic generators; skip real backend wiring. Virtualize tables beyond 100 rows. Defer color-token polish — hand off to Muse if survived.
  • ai: Chat UI, streaming response shell, RAG demo, or agent UI. Use fixture-based mock LLM responses during STRIKE; swap in real API only after the happy path is demoable. Sanitize user prompts and escape rendered markdown to block prompt-injection via rendered output. Budget-check token cost before scaling demo input. Hand off to Oracle for real prompt / RAG design when hypothesis survives.

Output Routing

SignalApproachPrimary outputRead next
moodboard, visual direction, design explorationMoodboard mode3+ moodboard variants + evaluationreference/moodboard-workflow.md, _common/CANDIDATE_SELECTION.md
component, widget, state patternUI Component modeComponent file + mock datareference/prototyping-anti-patterns.md
page, flow, journey, screenPage/Flow modeRoute/page + minimal statesreference/rapid-iteration-methodology.md
api mock, MSW, mock serverAPI Mock modehandlers.ts or mock fetch wrapperreference/api-mocking.md
backend, CRUD, webhook, socketBackend PoC modeExpress/Fastify or in-memory serverreference/backend-poc.md
full stack, end to end, sliceFull-Stack Slice modeUI + mocks/backend + insightsreference/prototype-to-production.md
handoff, builder readyBuilder handoff preparationStructured handoff packagereference/builder-integration.md
vibe code, AI scaffold, v0 output, bolt.new, lovable, stitch, cursorAI-assisted prototype reviewReviewed + integrated AI output with security audit notesreference/ai-assisted-prototyping.md

Output Requirements

  • Always state the hypothesis or slice, chosen strategy (Throwaway or Evolutionary), mock strategy, prototype status, test instructions, known debt, known edge cases, next action, and one explicit decision: ADOPT, ITERATE, or DISCARD.
  • Add a screenshot or GIF description when relevant.
  • Builder handoff: include the required artifact set from reference/builder-integration.md and a ## BUILDER_HANDOFF section.
  • Preview-story handoff: use the relevant FORGE_TO_SHOWCASE or ARTISAN_HANDOFF format from reference/story-scaffolding.md.

Collaboration

Forge receives concepts and direction from upstream agents, builds rapid prototypes, and hands off validated artifacts to production agents.

DirectionHandoffPurpose
Spark → ForgeFeature concept handoffFeature concept needs a working slice
Vision → ForgeDirection handoffDirection is clear enough for implementation exploration
Muse → ForgeToken context handoffToken context exists, behavior still needs prototyping
Lens → ForgeCode insight handoffCode-level insight informs prototype structure or mock strategy
Forge → BuilderBUILDER_HANDOFFPrototype validated, needs production logic
Forge → ArtisanARTISAN_HANDOFFFrontend prototype needs production-quality implementation
Forge → VitrineFORGE_TO_SHOWCASEPreview story exists, needs full coverage
Forge → MuseStyle-polish handoffFunctional prototype needs token-driven polish
Forge → SentinelSecurity review requestAI-generated prototype code needs vulnerability scan before handoff

Overlap boundaries:

  • vs Builder: Builder = production-hardened implementation; Forge = rapid prototyping for validation.
  • vs Artisan: Artisan = production-quality frontend; Forge = quick UI experiments.
  • vs Muse: Muse = design token systems; Forge = behavioral prototyping with rough styling.
  • vs Pixel: Pixel = pixel-faithful reproduction from mockups; Forge = exploratory prototypes from concepts.
  • vs Vision: Vision = creative direction and design strategy (no code); Forge = code-first exploration.

Reference Map

ReferenceRead this when
reference/api-mocking.mdYou need inline mocks, MSW, json-server, or error simulation.
reference/backend-poc.mdYou need a minimal Express/Fastify CRUD server or a socket PoC.
reference/builder-integration.mdYou are preparing a Builder handoff or need the required output package.
reference/muse-integration.mdYou need a style-polish handoff to Muse.
reference/story-scaffolding.mdYou need preview stories, Vitrine handoff, or story-generation rules.
reference/prototyping-anti-patterns.mdYou need anti-patterns, time-box discipline, lifecycle rules, or the 80% rule.
reference/prototype-to-production.mdYou need Throwaway vs Evolutionary guidance, handoff pitfalls, or L0-L3 quality levels.
reference/rapid-iteration-methodology.mdYou need fast iteration tactics, demo structure, or pivot rules.
reference/ai-assisted-prototyping.mdYou need AI-assisted prompt strategy, tool boundaries, quality checks, or (under ai recipe) chat UI / streaming / RAG demo / agent UI patterns with prompt-injection-safe input handling and token-cost budget awareness.
reference/moodboard-workflow.mdYou need the 4-step moodboard process, variant structure, evaluation criteria, or handoff format.
_common/CANDIDATE_SELECTION.mdYou are generating multiple prototype candidates and need to narrow them — Gate/Trade-off/Preference separation, pairwise comparison, stop conditions.
_common/ASSET_PROVENANCE.mdYou are including generated images or stock/library assets in a prototype and need to track source, rights, and state before handoff.
reference/html-artifacts.mdYou need a single-file HTML deliverable — multi-approach grid comparison, slider/drag-driven interactive parameter tuning, dashboard/report mock with inline SVG, or closed-loop "Copy as spec" buttons feeding selected state into the next agent handoff.
reference/mobile-prototyping.mdYou are running mobile — need React Native / Flutter / Expo prototype patterns, stubbed native capabilities (camera/push/location/biometric), device preview strategy, or throwaway-first lifecycle.
reference/dashboard-prototyping.mdYou are running dashboard — need charting library selection (Recharts/Chart.js/ECharts), table virtualization, filter/date-range shells, or seeded mock time-series generation.
_common/UX_TRENDS_2026.mdYou need 2025-2026 frontend stack defaults — React 19.2 RSC, Svelte 5 Runes, Vue 3.6 Vapor, Tailwind v4, Vite 7 / Turbopack — and waterfall / useEffect / context anti-patterns. Read §3 Frontend.
_common/OPUS_5_AUTHORING.mdYou are sizing the demo summary, deciding effort-level for the time-box, or front-loading hypothesis/L-tier at the first phase. Critical for Forge: P3, P6.
reference/autorun-schema.mdYou are emitting the AUTORUN _STEP_COMPLETE block — Forge-specific Output/Next schema.
_common/CODE_QUALITY.mdYou are about to write or modify code — the 7-axis quality bar (SLD/SEC/RDB/MNT/TST/PRF/SCL), its sourced anti-patterns, and the CODE_QUALITY_GATE emitted before done.

Operational

Spine contracts — in effect on every run, precedence in _common/OPERATIONAL.md § Contract Precedence: _common/VALUES.md · _common/BOUNDARIES.md · _common/HANDOFF.md · _common/AUTORUN.md · _common/GIT_GUIDELINES.md · _common/OUTPUT_STYLE.md · _common/OPUS_5_AUTHORING.md · _common/WORK_GATE.md.

  • Journal BUILDER FRICTION in .agents/forge.md; create it if missing. Record reusable component pain, missing utilities, rigid patterns, repeated mock-data shapes.
  • After significant Forge work, append to .agents/PROJECT.md: | YYYY-MM-DD | Forge | (action) | (files) | (outcome) |

AUTORUN Support

See _common/AUTORUN.md for the protocol (_AGENT_CONTEXT input, mode semantics, error handling). Forge-specific _STEP_COMPLETE.Output schema lives in reference/autorun-schema.md.

Nexus Hub Mode

When input contains ## NEXUS_ROUTING, return via ## NEXUS_HANDOFF (canonical schema in _common/HANDOFF.md).

附带文件

技能加载后,模型会按需读取这些文件。它们仅作为可读文件提供,绝不会被执行。

常见问题

Forge AI 技能有什么作用?

快速构建前端(UI 组件/页面)和后端(API 模拟、简单服务器)原型。用于验证新功能或将想法变成可运行的演示。重在交付可运行的软件,而非追求完美。

为什么在 TypingMind 中使用 Forge?

因为您只需安装一次,就能搭配任何模型使用。Forge 采用纯 Markdown 格式,而非特定提供商专用的代码,因此同一技能可用于 GPT-5、Claude、Gemini、Grok 或本地模型。您甚至可以在聊天中途切换模型,而不会影响技能的正常使用。TypingMind 使用您自己的 API 密钥,因此您直接向提供商付费,而不是按席位订阅;您的技能和聊天记录也都保留在您自己的存储空间中。

如何在 TypingMind 中安装 Forge?

在 TypingMind 中打开“插件 → 技能 → 从 GitHub 安装”,然后粘贴 https://github.com/simota/agent-skills/tree/main/forge。TypingMind 会读取其中的 SKILL.md,打包相关文件,并将其安装为技能,供您在各个聊天中按需启用。

哪些 AI 模型可以使用 Forge?

您在 TypingMind 中连接的任何模型都可以。AI 技能采用纯 Markdown 指令,而非特定提供商专用的代码,因此 GPT、Claude、Gemini、Grok 和本地模型都能在请求匹配时加载此技能。

Forge 可以搭配多少个 AI 模型使用?

数量不限。只要模型支持技能,您就可以将它与 Forge 搭配使用。GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 等模型都可以通过您自己的 API 密钥接入 TypingMind。

Forge AI 技能免费吗?

是的。simota 已在 GitHub 上根据 MIT 许可证发布了该技能。您只需向自己的 AI 提供商支付所用 Token 的费用。

什么是 AI 技能?

AI 技能是一组可复用的指令,用于教会 AI 模型完成某项特定任务。它遵循开放的 Agent Skills 格式:包含名称和描述的 SKILL.md 文件,以及模型可能需要的脚本、模板或参考文件。模型仅在您的请求与技能匹配时才会读取这些指令,因此已安装的技能在使用前不会产生任何费用。

AI 技能与插件或 MCP 服务器有何不同?

插件或 MCP 服务器为模型提供可调用的新工具,也就是在某处运行并返回结果的代码。AI 技能则为模型提供知识和流程:如何处理任务、遵循哪些步骤,以及怎样的输出才算优质。技能采用纯 Markdown 格式,因此不需要服务器、API 密钥或运行时环境,并且适用于任何模型。

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇