Ring:Running Dev Cycle Frontend 标志

Ring:Running Dev Cycle Frontend

组织
LerianStudio
ring:running-dev-cycle-frontend

Running the frontend (React/Next.js/TS) dev cycle from a plan.md (ring:writing-plans format; legacy tasks.md only for in-flight cycles) or backend handoff: drives frontend agents through Gate 0 TDD plus accessibility/visual/E2E/perf checks, Gate 7 parallel review, and Gate 8 user validation, with rolling-wave phase boundaries. Use when starting or resuming a gated frontend dev cycle. Skip for backend (use ring:running-dev-cycle) or docs-only work.

概览

发布者LerianStudio
代码仓库ring
技能名称ring:running-dev-cycle-frontend
星标数
215
复刻数
28
附带文件
仅含指令
许可协议Apache-2.0
链接
  • Markdown 格式的指令

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

  • 兼容任何大语言模型

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

  • 指令自成一体

    模型所需的一切都包含在指令中,无需同步额外文件。

  • 开源

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

安装

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

1

安装到 TypingMind

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

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

安装到其他智能体

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

Claude Code — .claude/skills
git clone --depth 1 https://github.com/LerianStudio/ring.git /tmp/ring
mkdir -p .claude/skills
cp -r /tmp/ring/dev-team/skills/running-dev-cycle-frontend .claude/skills/lerianstudio-ring-running-dev-cycle-frontend
复制后,请重启 Claude Code,以加载新技能。

在 TypingMind 中使用此技能

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

一旦请求与技能匹配,模型就会自动加载 Ring:Running Dev Cycle Frontend。

兼容任何 AI 模型

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

  • 仅在需要时加载

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

  • 在聊天中切换模型

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

技能指令

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

Frontend Development Cycle Orchestrator

When to use

  • Starting a new frontend development cycle with a plan file (plan.md, canonical ring:writing-plans format; legacy tasks.md is accepted ONLY for cycles already in flight — current-cycle.json exists, init is not re-run)
  • Resuming an interrupted frontend development cycle (--resume flag)
  • After backend dev cycle completes (consuming handoff)

Skip when

  • No plan file exists
  • Task is documentation-only or planning-only
  • Backend project — use ring:running-dev-cycle instead

Sequence

Runs before: ring:writing-dev-reports

You orchestrate. Agents execute. NEVER read/write/edit source files (*.ts, *.tsx, *.jsx, *.css) directly. All code changes go through Task(subagent_type=...). Announce at start: "Using ring:running-dev-cycle-frontend with lean gate flow (Gate 0, 7, 8)."

Step 0: Pre-Execution Setup (MANDATORY)

1. Detect UI library: Read package.json
   <!-- Replace @your-org/design-system with your organization's design system package. -->
   - "@your-org/design-system" present → ui_library_mode = "design-system"
   - Otherwise → ui_library_mode = "fallback-only"
   Store in state.

2. Pre-cache standards (once):
   WebFetch → https://raw.githubusercontent.com/LerianStudio/ring/main/CLAUDE.md
   WebFetch → https://raw.githubusercontent.com/LerianStudio/ring/main/dev-team/docs/standards/frontend.md
   WebFetch → testing-accessibility.md, testing-visual.md, testing-e2e.md, testing-performance.md, devops.md, sre.md
   Store in state.cached_standards.

3. Load backend handoff if available: docs/ring:running-dev-cycle/handoff-frontend.json

4. Verify PROJECT_RULES.md exists → STOP if missing.

5. Ask execution mode: automatic | manual_per_epic | manual_per_task

Gate Map

GateCadenceSkillAgentPurpose
0taskring:implementing-tasksring:frontend / ring:ui-engineer / ring:bff-tsTDD, coverage, accessibility, visual/E2E/perf checks, local runtime
0.5task (conditional)ring:applying-composition-patternsring:frontendComposition refactoring when complexity signals detected
7epicring:reviewing-code9 defaults + triggered specialists via ring:reviewing-codeCode review
8taskring:validating-acceptance-criteriaUserAcceptance sign-off

All listed gates are MANDATORY. No exceptions.

Gate Agent Selection (Gate 0)

ConditionAgent
React/Next.js componentring:frontend
Design system UIring:ui-engineer
BFF / API aggregationring:bff-ts
Mixedfrontend first, then bff-ts

Pass ui_library_mode to every Gate 0 agent.

Frontend TDD Policy

Component LayerTDD Required?When
Custom hooksYES — RED→GREENGate 0
Form validationYES — RED→GREENGate 0
State managementYES — RED→GREENGate 0
Conditional renderingYES — RED→GREENGate 0
API integrationYES — RED→GREENGate 0
Layout / stylingNO — test-afterGate 0 visual checks
AnimationsNO — test-afterGate 0 visual checks
Static presentationalNO — test-afterGate 0 visual checks

Execution Order

yaml
for each epic:
  for each task:
    Gate 0
    [checkpoint if manual_per_task]

  # epic-level (after all tasks)
  Gate 7

  # task-level validation after review passes
  for each task:
    Gate 8
    Skill("ring:committing-changes")  # commit task work after Gate 8 user approval

  [checkpoint if manual_per_epic]

  # phase boundary — fires once, after the last epic of the current phase
  [if epic is last in its phase: Phase Cadence (see below)]

Phase Boundary (Rolling Wave)

Phases group epics and are elaborated one at a time. After the last epic of the current phase completes its Gate 0/7/8 flow, fire the phase boundary exactly once:

1. Close the finished phase in the plan: set its `## Phase Overview` Status cell →
   `Complete` (Edit on the plan file; skip silently if the table is absent —
   FALLBACK single-phase plan).
2. Checkpoint with the user: summarize the completed phase (epics done, review/validation
   outcomes) and confirm intent to continue.
2.5. Ask the user: "Open a PR for this phase?" → if yes: `Skill("ring:opening-pull-requests")` (optional, never automatic).
3. Elaborate the next phase's tasks inline under each epic as `#### Task N.M.T:`
   blocks, following the ring:writing-plans Task Format (`- [ ] Done` checkbox
   immediately under the heading, then Context, Implementation vision, Files,
   Verification, Done when). Detail exactly one phase ahead — never further.
4. Set the newly elaborated phase's Phase Overview Status cell → `Detailed`.
5. Set state.current_phase to the next phase and resume execution from its first epic.

Epic **Status:** lifecycle writes (same contract as ring:running-dev-cycle): the plan's epic **Status:** line is the write target throughout the epic loop — Pending → Doing before the epic's first Gate 0, Doing → Done after the epic passes Gate 7/8 and its checkpoint, Doing → Failed on a hard block. Edit the plan file at each of these transitions, alongside the state write.

Do not elaborate more than one phase ahead — detail decays before execution reaches it.

Gate Execution Workflow (MANDATORY for every gate)

1. Skill("[sub-skill-name]")
2. Follow sub-skill dispatch rules
3. Task(subagent_type=...)
4. Validate output
5. Write state
6. Next gate

Sub-skill MUST be loaded before dispatching the agent.

Gate 0.5: Composition Complexity Scan (Conditional)

After Gate 0 passes, scan changed .tsx/.jsx files for composition complexity signals. If no signals are detected, skip this gate entirely (zero overhead).

Detection Heuristics

SignalThresholdDetection
Boolean prop count>=3 boolean props in Props type/interfaceGrep: prop?: boolean or prop: boolean
File size + hooks>200 lines AND >3 useState/useEffectLine count + hook grep
Conditional branches>=3 ternaries or && chains tied to boolean propsPattern: {isX && ...} or isX ? ... : ...

When Triggers Hit

  1. Skill("ring:applying-composition-patterns") — load the composition patterns skill
  2. Dispatch ring:frontend with flagged files + skill content as context
  3. Agent applies patterns in priority order:
    • 1.1 Eliminate boolean prop proliferation (CRITICAL)
    • 1.2 Extract compound components if applicable
    • 2.x Lift state only if warranted
    • 3-4 Apply only if natural fit
  4. Re-run tests — all MUST pass; coverage MUST NOT decrease vs Gate 0
  5. Commit via ring:committing-changes — expected message: refactor(component): apply composition patterns to <ComponentName>

Safety

  • If refactoring breaks tests irrecoverably → rollback to Gate 0 state, skip Gate 0.5, proceed to Gate 7 with note: "Composition refactoring attempted but reverted — review flagged files manually"
  • Coverage after refactoring MUST be >= Gate 0 coverage
  • Behavior MUST NOT change — refactor structure only (same props in = same render out)

Gate 7: Reviewers

Invoke Skill("ring:reviewing-code"). The ring:reviewing-code skill dispatches its 9 default reviewers plus triggered conditional specialists in parallel and applies its own pass/fail rules.

Gate Completion Criteria

GateRequired for COMPLETE
0TDD RED captured (behavioral) + GREEN passes; visual: implementation complete
0.5Conditional: no complexity signals OR refactored + tests pass + coverage >= Gate 0
7ring:reviewing-code PASS (all 9 defaults and triggered specialists)
8Explicit "APPROVED" from user

Former Gates 1-6 checks are owned by Gate 0 implementation and local verification.

State Management

State: docs/ring:running-dev-cycle-frontend/current-cycle.json (state schema v2.0.0).

Write after EVERY gate. If write fails → STOP.

json
{
  "schema_version": "2.0.0",
  "ui_library_mode": "",
  "tasks_file": "",
  "execution_mode": "",
  "current_gate": 0,
  "phases": [],
  "current_phase": "",
  "phase_checkpoint": {},
  "epics": [],
  "current_epic_index": 0,
  "current_task_index": 0,
  "gates_completed": {},
  "cached_standards": {}
}

Each entry in epics[] (Epic N.M) carries its own tasks[] array (Task N.M.T). Gate 0/8 run at task cadence over epics[current_epic_index].tasks[current_task_index]; Gate 7 runs at epic cadence over the union of that epic's tasks.

Blocker Handling

BlockerAction
Gate failureSTOP. Fix before proceeding.
Missing PROJECT_RULES.mdSTOP. Create using template.
Standards WebFetch failsSTOP. Report.
Architectural decision neededSTOP. Present options to user.

常见问题

Ring:Running Dev Cycle Frontend AI 技能有什么作用?

Running the frontend (React/Next.js/TS) dev cycle from a plan.md (ring:writing-plans format; legacy tasks.md only for in-flight cycles) or backend handoff: drives frontend agents through Gate 0 TDD plus accessibility/visual/E2E/perf checks, Gate 7 parallel review, and Gate 8 user validation, with rolling-wave phase boundaries. Use when starting or resuming a gated frontend dev cycle. Skip for backend (use ring:running-dev-cycle) or docs-only work.

为什么在 TypingMind 中使用 Ring:Running Dev Cycle Frontend?

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

如何在 TypingMind 中安装 Ring:Running Dev Cycle Frontend?

在 TypingMind 中打开“插件 → 技能 → 从 GitHub 安装”,然后粘贴 https://github.com/LerianStudio/ring/tree/main/dev-team/skills/running-dev-cycle-frontend。TypingMind 会读取其中的 SKILL.md,并将其安装为技能,供您在各个聊天中按需启用。

哪些 AI 模型可以使用 Ring:Running Dev Cycle Frontend?

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

Ring:Running Dev Cycle Frontend 可以搭配多少个 AI 模型使用?

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

Ring:Running Dev Cycle Frontend AI 技能免费吗?

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

什么是 AI 技能?

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

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

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

查看全部

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

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