Flow2Spec: Skill for Cursor

.cursor/skills/repo-dev-check 19-45-15-720/SKILL.md

repo-dev-check is a skill for Cursor from double-coding-lab/Flow2Spec. It costs 104 tokens per session (2,426 once invoked), scanned A, a copy of repo-dev-check, MIT.

A development self-check for the Flow2Spec project’s two related repositories. It checks whether changes belong in templates, project configuration, or one or both repositories.

In plain words
What is it for?
It helps review pending changes, compare the two repositories, check the project’s development rules, and suggest where misplaced changes should be moved.
Why use it?
It helps prevent changes being saved in the wrong place, copied into downstream projects incorrectly, or made in only one repository when both must match.

Skill for Cursor

Written for Cursor: installed under .cursor/. Also seen: reads .claude/ paths; mentions subagents; mentions AGENTS.md.

This is double-coding-lab/Flow2Spec's own configuration. It tells Cursor how to work on Flow2Spec itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything Flow2Spec configures →

Reuse

Borrowing it

Nothing to install: this file belongs to double-coding-lab/Flow2Spec. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/double-coding-lab/Flow2Spec/main/.cursor/skills/repo-dev-check 19-45-15-720/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/double-coding-lab/Flow2Spec

Made for: Cursor.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for repo-dev-check

README.md
[![agentmods](https://agentmods.dev/badge/skills/double-coding-lab/flow2spec/repo-dev-check-19-45-15-720/github.svg)](https://agentmods.dev/skills/double-coding-lab/flow2spec/repo-dev-check-19-45-15-720)
Your own site
<a href="https://agentmods.dev/skills/double-coding-lab/flow2spec/repo-dev-check-19-45-15-720"><img src="https://agentmods.dev/badge/skills/double-coding-lab/flow2spec/repo-dev-check-19-45-15-720/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for repo-dev-check

Your own site · 80×15
<a href="https://agentmods.dev/skills/double-coding-lab/flow2spec/repo-dev-check-19-45-15-720"><img src="https://agentmods.dev/badge/skills/double-coding-lab/flow2spec/repo-dev-check-19-45-15-720.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 104 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,426 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin 88% copy Near-identical to another mod in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00104 $0.02426
Opus 5 $0.00052 $0.01213
Sonnet 5 $0.00021 $0.00485
Haiku 4.5 $0.00010 $0.00243

Measured 9d ago against content hash 526b02d0c2f6, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

repo-dev-check scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

This is a copy

88% identical to repo-dev-check — 53 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

.cursor/skills/repo-dev-check 19-45-15-720/SKILL.md · 123 lines

How it starts

The opening of the file, as written. The whole thing — 123 lines — stays where its author put it; the contents beside it link to each section on GitHub.

repo-dev-check(本仓开发纪律自查)

适用:仅在 Flow2Spec 双仓自身(Flow2Spec-public / flow2spec)里开发时启用。下游项目不会拿到本 SKILL——它只存在于本仓的 .claude/skills/.cursor/skills/.codex/skills/,从不进 templates/

单一事实源:本 SKILL 依据 f2s-dev-workflow-constraints 规则执行(Claude:.claude/rules/repo-dev-workflow-constraints.md;Cursor:.cursor/rules/repo-dev-workflow-constraints.mdc;Codex:.codex/topics/repo-dev-workflow-constraints.md)。步骤 0 必须 Read 该规则全文。

触发场景

  • 用户显式说「跑 dev-workflow 自查 / 检查双仓 / 检查是不是改错地方了」;
  • 用户在 Flow2Spec 双仓内、Agent 即将提交前主动自查;
  • Agent 发现自己刚做了配置根下的 Edit / Write,或只在单侧仓库落了盘,须补做本自查;
  • Agent 在改开发纪律相关的规则 / skill / topic 时(比如本文件、f2s-dev-workflow-constraints)。

不触发:下游项目内、纯业务代码修改无 template/config-root 交集时。

前置

步骤 0Read .claude/rules/repo-dev-workflow-constraints.md(Cursor:.cursor/rules/*.mdc;Codex:.codex/topics/*.md)全文。不 Read 直接开跑属违规

编排

  • 主 agent 通篇执行:本 skill 无重 IO 操作,无需拆子。
  • 配置:不受 flow2spec.config.json.subAgent 约束(无论 true / false 都主 agent 跑)。
  • 写权:本 skill 主动落盘业务文件;只做判定 + 建议;确实需要写盘时逐条回到具体 skill(如 f2s-git-commit)流程。

步骤

步骤 1:定位当前仓 + git 摸底

  1. 判断当前工作目录是否在 Flow2Spec 双仓内:Bashgit remote -v 查看,若 URL 含 github.com/Lands-1203/Flow2Specgit.dev.sh.ctripcorp.com/trainH5/flow2spec 则算作双仓,否则报错退出(下游项目不该跑本 skill)。
  2. Bashgit status -s | grep -v DS_Store 列出所有未提交改动。
  3. Bashls "/Users/<user>/Desktop/项目/ai/flow2spec 双仓/"(或用户当前放双仓的父目录)确认另一侧仓库是否存在于本机。用户不用双父目录时,跳过对侧检查、只做本侧自查(并在摘要提示)。

步骤 2:写盘边界判定(对每份 pending 文件)

对步骤 1 列出的每一份改动文件,套下表判定:

文件路径模式 是否合规 判定依据
templates/zh-CN/**templates/en-US/** ✅ 合规 生产侧唯一入口
docs/** / lib/** / cli.js / scripts/** / package.json ✅ 合规 包源码
.Knowledge/** ✅ 合规 本仓自身知识库
.claude/rules/repo-dev-workflow-constraints.md ✅ 合规 本仓专属手写规则(templates 无对应源)
.claude/skills/repo-dev-check/** ✅ 合规 本仓专属手写 skill(templates 无对应源)
.cursor/rules/repo-dev-workflow-constraints.mdc ✅ 合规 同上(Cursor 端)
.cursor/skills/repo-dev-check/** ✅ 合规 同上
.codex/topics/repo-dev-workflow-constraints.md ✅ 合规 同上(Codex 端)
.codex/skills/repo-dev-check/** ✅ 合规 同上
.claude/rules/<其它>.md / .cursor/rules/<其它>.mdc / .codex/topics/<其它>.md ❌ 违规 有 templates 对应源 → 应改 templates/{zh-CN,en-US}/rules/<其它>.md
.claude/skills/<其它>/** / .cursor/skills/<其它>/** / .codex/skills/<其它>/** ❌ 违规 有 templates 对应源 → 应改 templates/{zh-CN,en-US}/skills/<其它>/SKILL.md
AGENTS.md ❌ 违规 buildCodexAgentsMd(templatesDir, ...) 从 templates 拼装 → 应改 templates/{zh-CN,en-US}/AGENTS.md
.claude/hooks/** / .cursor/hooks/** / .codex/hooks/** / .claude/settings.json / .cursor/hooks.json / .codex/hooks.json ❌ 违规 init 产物 → 需求要改的话改 lib/init.jstemplates/
.claude/memory/** / LOCAL_CONTEXT.md ⚠️ 本地态 不入库,不受约束(但提醒别 commit)

Read the full file on GitHub · 123 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 123 lines · 104 tokens per session scan A 526b02d0c2f6

Subscribe to this mod's changes

repo-dev-check is a skill published in the GitHub repository double-coding-lab/Flow2Spec (48 stars, last pushed yesterday), licensed MIT. It adds 104 tokens to every session and 2,426 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 0 findings. It is 88% identical to repo-dev-check, differing in 53 lines, and is treated as a copy.

Related

Other skills, from other repositories

systematic-debugging

Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.

obra/superpowers · 21 tokens

local-ai-agents

Build local-first AI agents that run entirely on a developer workstation with Microsoft Foundry Local and Qwen function-calling models. Covers Small Language Models (SLMs), the OpenAI-compatible local endpoint, sandboxed local tools, local RAG with Chroma, local MCP servers, hybrid cloud/local routing, and the…

microsoft/ai-agents-for-beginners · 200 tokens

next-cache-components-adoption

Turn on Cache Components in a Next.js app and resolve the blocking routes it surfaces. Use when the user wants to enable, adopt, or migrate to Cache Components, flip the cacheComponents flag, work through a flood of blocking-prerender / instant validation errors, run the cache-components-instant-false codemod, or…

vercel/next.js · 95 tokens

insight-error-page

Write or audit an insight-kind error page for the Next.js dev overlay. Use when creating a new errors/ .mdx page, auditing an existing one, or checking that a page matches the framework fix cards. Covers page structure, title alignment, FixCard cards with Copy prompt button, code snippets, terminology verification…

vercel/next.js · 83 tokens

next-cache-components-optimizer

Drive a Next.js route to instant navigation by setting up an agentic loop, under Cache Components / PPR, on initial load (hard navigation) and client-side navigation (soft navigation). Encode the goal as a failing @next/playwright instant() e2e and work it to green, one verified route at a time; the shipped test then…

vercel/next.js · 170 tokens

next-partial-prefetching-adoption

Turn on Partial Prefetching in a Next.js app and work through the insights it surfaces. Use when the user wants to enable or adopt Partial Prefetching, flip the partialPrefetching flag, opt routes in with export const prefetch = 'partial', audit Link prefetch={true} behavior, preserve existing prefetched UI with…

vercel/next.js · 103 tokens