Dev.Loop 标志

Dev.Loop

社区
kevinslin
dev.loop

Drive a development task through planning, execution, verification, and publishing.

概览

发布者kevinslin
代码仓库agstack
技能名称dev.loop
星标数
26
复刻数
1
附带文件
1
链接
  • Markdown 格式的指令

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

  • 兼容任何大语言模型

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

  • 1 个随附文件

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

  • 开源

    由 kevinslin 发布于 GitHub。请在安装前查看源内容。

安装

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

1

安装到 TypingMind

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

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

安装到其他智能体

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

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

在 TypingMind 中使用此技能

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

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

兼容任何 AI 模型

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

  • 仅在需要时加载

    系统提示词中仅包含技能名称和描述。首次遇到匹配的请求时才会获取指令,因此未使用的技能不会产生额外费用。

  • 在聊天中切换模型

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

技能指令

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

Dev Loop

Setup

Do this only once per repo. Ensure the .agents/ folder is ignored in the repo (for example, add .agents/ to .gitignore)

Usage

User will ask you to run dev.loop. This is usually with either an existing design spec or a stated goal.

If user gives you an existing spec - go straight to step 2 (Gather Context). Otherwise, start at step 1 (Plan).

If the task is straightforward, you can skip creating a spec and go straight to step 3.

If the user asks you to "check in after creating the spec" or uses similar wording, treat that as a pause point before implementation, not as permission to skip the immediate post-spec gather-context work. Unless the user explicitly says to stop before review, still complete the required spec review, ambiguity/gap analysis, and recommendation fold-in from step 2 before checking in.

In addition to running the whole dev.loop, users can also invoke an individual phase of the dev.loop by referring to it (eg. re-run the "verify" phase). An individually requested Verify phase never pushes; a full dev.loop run continues through the separate Push phase unless the user explicitly instructs not to push.

Whenever practical - use one or more subagents to run any given phase to preserve context

Workflow Phases

1. Plan

  • Use $specy to create a feature spec
  • Bias toward answering plan questions yourself; only ask the user when blocked or when user tells you to check with them.
  • Ensure the plan includes explicit tests (prefer integration tests).
  • List every test or observable outcome the user explicitly requested, the real execution boundary it must exercise, and its required infrastructure.
  • Honor explicit autonomy and workflow preferences. Ask substantive product questions when needed, but do not introduce approval checkpoints for actions already authorized; never treat autonomy as permission to exceed task scope.
  • Capture the plan prefix from the plan filename: {YYYY-MM-DD}-{title-in-kebab-case}.

2. Gather Context

  • Trace the existing end-to-end lifecycle, including initialization and runtime. Identify unmet requested outcomes and unresolved assumptions before introducing another mechanism.
  • Preflight infrastructure needed for explicitly requested integration proof before declaring the task executable. Identify unavailable clusters, runtime images, credentials, services, or host capabilities early.
  • Record an acceptance-proof matrix mapping each requested outcome to its real test command, production boundary, prerequisites, and current status.
  • Explicitly answer:
    • What ambiguities or gaps are still left?
    • Are there missing flow docs that, once created, would resolve those ambiguities?
  • If there are questions for the user, ask them before continuing.
  • If flow docs are missing, propose which flow docs should be generated (title, scope, and why each one resolves a specific gap).
  • Summarize this phase in three sections:
    • Ambiguities/Gaps
    • Questions for User
    • Proposed Flow Docs
  • After creating the spec, spawn subagent to critical review design doc with $dev.review skill and provide recommendations
  • Apply correctness fixes and simplifications within the approved contract. Present changes to that contract as product decisions before applying them.
  • If the user asked for a post-spec check-in, perform that check-in only after the review feedback and ambiguity summary are incorporated, unless they explicitly asked to stop earlier.

3. Execute

  • Create a new branch for implementation unless given explicit instructions not to. If user explicitly asks for worktree, create worktree. If a plan branch exists, branch off it to keep the plan commit(s).
  • Follow the plan steps in order and check off each task as it is completed in the plan file.
  • Use red/green TDD.
  • For each phase or milestone, run @shortcut:precommit-process.md then @shortcut:commit-code.md to commit that phase separately.
  • Always commit after each phase (do not wait for user prompting). If precommit fails, fix issues and re-run before committing. If no precommit script exists, run the plan’s tests then commit.
  • Maintain progress artifacts under %ROOT_DIR/.agents/progress (create the folder if it does not exist):
    • %ROOT_DIR/.agents/progress/{prefix}-progress.md for status updates, decisions, and blockers.
    • %ROOT_DIR/.agents/progress/{prefix}-learnings.md for mistakes, lessons, and adjustments.

4. Polish

  • Gather session changes by reviewing changed files in the current worktree.
  • Identify behavior changes, CLI/API changes, config changes, and workflow changes that need documentation.
  • Update README.md so relevant behavior changes are documented.
  • If DESIGN.md exists, update sections affected by the implementation.
  • Confirm each meaningful change is reflected in docs, keeping updates specific and accurate.
  • If flow docs exist, update relevant flow docs with meaningful changes, including config updates and sudocode details when significant logic changes.

5. Verify

Evidence reuse and scope
  • In the acceptance-proof matrix, distinguish required user/repository checks, affected regression checks, and exploratory checks before running them. Do not downgrade a required check after it fails.

  • Keep one evidence record per check: exact command/selector, exercised boundary, relevant source and test/helper versions, runtime/configuration/infrastructure identity, result, and log path. Confirm the intended scenarios actually ran; keep secret values out of the record.

  • Reuse inspected passing evidence while those inputs remain applicable. A new agent, phase, commit hash, or unrelated documentation edit alone does not invalidate it. The verifier independently checks evidence and its applicability; do not rerun solely to change who executed it. Explicit fresh-run requirements and current-head CI gates still apply.

  • Run cheap checks during implementation; batch expensive live checks after the implementation and required base integration stabilize. After a fix or rebase, inspect the actual delta and rerun the smallest supported set covering affected behavior and regressions. Explain any broader rerun; unchanged areas retain their evidence. If applicability is uncertain, rerun the affected check.

  • Classify failures as branch-related, established baseline/environmental, or unresolved using comparable evidence; one failure alone does not establish flakiness. Fix in-scope regressions. Record established unrelated failures once and continue unaffected work; do not repeatedly retry unchanged failures or expand into unrelated repairs without approval. A blocked required check remains blocked until resolved or explicitly rescoped by the user.

  • Once required checks, applicable regression coverage, and review findings are resolved, proceed to Push. Do not add another full review/test cycle merely because a phase changed; preserve the required post-push CI and review gates.

  • Satisfy the plan tests with applicable passing evidence or fresh execution under the rules above.

  • Check features against the validation plan and existing tests using the evidence-reuse rules above.

  • Run every test the user explicitly requested and record its actual outcome. A skipped, failed, unavailable, or substitute test does not satisfy that acceptance criterion, even when the remaining suite is green.

  • Confirm proof exercises the requested real boundary: rendered manifests are not a deployment, fixture processes are not production runtimes, and local execution is not a live cluster. Report the exact blocker when proof cannot be obtained; do not describe the requested verification as complete.

  • If there are unstaged changes relevant to your current work, create a scoped local commit. Do not invoke trigger:commit-code here because it updates an existing PR after committing.

  • Do not push, create or update a PR, or run post-push CI or review during Verify.

6. Push

  • Do not treat push as optional due to caution, preference, uncertainty, “waiting for review,” or because the implementation already appears done. Only skip push when the user says so explicitly.
  • Hard completion gate for any full dev.loop run with code changes:
    • do not send a final handoff until the branch is pushed and a PR URL exists
    • NEVER skip trigger:push-pr during Push unless the user explicitly instructs not to push.
    • open the PR as ready for review by default; never make it a draft PR unless the user explicitly asks for a draft
    • include the PR URL in the final handoff
    • if push or PR creation fails, report the exact command error and what retry was attempted, and treat the run as incomplete
  • If the user asks a status question such as did you push a pr? and the truthful answer is no, do not stop after answering. Resume Push immediately and run trigger:push-pr unless the user explicitly told you not to push.
  • Ensure the PR body includes manual testing steps with checkboxes.
  • After push succeeds, spawn two subagents:
    • spawn worker subagent to verify CI for the pushed branch is green via trigger:check-ci.
    • spawn a-review subagent for critical review using the $dev.review skill
  • Wait for both subagents to complete. Address review feedback from coding agents and humans; apply fixes, re-run tests, push, and re-check CI.
  • Notify the user when the work is ready.

Important Reminders

  • unless you require user input, don't stop until you finish EVERY phase of the dev.loop
  • Verify is local-only; the separate Push phase includes push, CI check, and review. These are required for a full dev.loop run by default and are NEVER optional unless the user explicitly instructs not to push.
  • When Push creates a PR, it should be a ready PR by default. Draft PRs require explicit user instruction.
  • A dev.loop run that ends without a pushed branch and PR should be treated as incomplete unless the user explicitly said not to push.
  • A final answer for a code-changing dev.loop run must include the PR URL, or explicitly state that the run is incomplete because push/PR creation failed. Never end a dev.loop run with only local branch or commit status.
  • A passing aggregate suite never overrides an explicitly requested test that did not run or pass; name every outstanding acceptance-proof gap in the final handoff.

Phase Overrides

Users can substitute any phase in the dev loop by mentioning they would like to override a particular phase with another set of instrctions.

Example:

## Dev Loop Overrides
Override the following phases of the devloop

### Goal
Use dev.prd to create the goal

### Verify
Make sure that the acceptance criteria from dev.prd have been carried out

附带文件

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

常见问题

Dev.Loop AI 技能有什么作用?

Drive a development task through planning, execution, verification, and publishing.

为什么在 TypingMind 中使用 Dev.Loop?

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

如何在 TypingMind 中安装 Dev.Loop?

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

哪些 AI 模型可以使用 Dev.Loop?

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

Dev.Loop 可以搭配多少个 AI 模型使用?

数量不限。只要模型支持技能,您就可以搭配 Dev.Loop 使用,包括 GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 等,都可在 TypingMind 中使用您自己的 API 密钥接入。

Dev.Loop AI 技能免费吗?

该技能源自 kevinslin 在 GitHub 上发布的项目。请查看代码仓库了解许可条款。您只需向自己的 AI 提供商支付所用 Token 的费用。

什么是 AI 技能?

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

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

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

查看全部

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

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