Logo Setup

Setup

Cộng đồng
rustyrazorblade
setup

Interactively bring a repo onto spec-flow's Prerequisites — OpenSpec init, gh auth, the label vocabulary, the agent-teams env var, the seam-visualization preference, the refactor circuit breaker, the .gitignore entries, the repo's own spec-flow/TESTING.md test and CI policy (proposed, confirmed with the owner, then landed on a branch as a PR — the one outward action this skill takes), and CI test-tiering state. Explores what's already true first, shows the check results as information, then asks about each item still missing in its own message, with a recommended default. Run once per repo, before relying on the rest of the pipeline; safe to re-run any time (skips whatever's already satisfied). See docs/workflow.md.

Tổng quan

Nhà phát hànhrustyrazorblade
Kho mãskills
Tên kỹ năngsetup
Sao
44
Bản fork
9
Tệp đi kèm
Chỉ có hướng dẫn
Giấy phépApache-2.0
Liên kết
  • Hướng dẫn bằng Markdown

    Tệp SKILL.md được mô hình tải khi cần, nên chỉ tốn token khi có yêu cầu thực sự phù hợp.

  • Dùng được với mọi LLM

    Kỹ năng AI là Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên dùng được với GPT, Claude, Gemini, Grok hoặc mô hình cục bộ.

  • Đầy đủ trong hướng dẫn

    Mọi thứ mô hình cần đều nằm trong hướng dẫn — không có tệp bổ sung cần đồng bộ.

  • Mã nguồn mở

    Được rustyrazorblade công bố trên GitHub. Hãy đọc nội dung nguồn trước khi cài đặt.

Cài đặt

Cài đặt kỹ năng AI Setup trong TypingMind để dùng với bất kỳ LLM nào, hoặc thêm vào một tác nhân AI khác có thể đọc SKILL.md.

1

Cài đặt trong TypingMind

TypingMind cài đặt kỹ năng trực tiếp từ thư mục GitHub — đọc SKILL.md, đóng gói các tệp tài nguyên và lưu kết quả trên máy.

  1. Mở ứng dụng và vào Plugin → Kỹ năng.
  2. Chọn "Cài đặt từ GitHub".
  3. Dán URL thư mục kỹ năng bên dưới và xác nhận.
    https://github.com/rustyrazorblade/skills/tree/main/plugins/spec-flow/skills/setup
  4. Bật kỹ năng trong từng cuộc trò chuyện mà bạn muốn sử dụng kỹ năng đó.
Plugin → Kỹ năng → Thêm kỹ năng → Từ URL GitHub, sau đó dán URL thư mục và nhấn Tiếp tục.
2

Cài đặt trong tác nhân AI khác

Bất kỳ tác nhân AI nào đọc được định dạng Agent Skills đều có thể dùng kỹ năng này — hãy sao chép thư mục vào thư mục kỹ năng của tác nhân AI đó.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/rustyrazorblade/skills.git /tmp/skills
mkdir -p .claude/skills
cp -r /tmp/skills/plugins/spec-flow/skills/setup .claude/skills/setup
Khởi động lại Claude Code sau khi sao chép để ứng dụng nhận kỹ năng mới.

Sử dụng trong TypingMind

Bật Setup trong bất kỳ cuộc trò chuyện nào trên TypingMind, mô hình sẽ tự xử lý phần còn lại. Tên và mô tả của kỹ năng nằm trong prompt hệ thống. Ngay khi có yêu cầu phù hợp, mô hình tự tải toàn bộ hướng dẫn — bạn không cần gọi thủ công và kỹ năng không tốn token cho đến khi thực sự được dùng.

Mô hình tự tải Setup ngay khi có yêu cầu phù hợp.

Dùng được với mọi mô hình AI

Kỹ năng AI là các hướng dẫn Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên Setup không bị giới hạn ở mô hình mà kỹ năng này được viết cho. Chỉ cần cài đặt một lần trong TypingMind rồi dùng với GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama hoặc mô hình cục bộ do bạn tự chạy — tất cả đều dùng khóa API của riêng bạn.

  • Chỉ tải khi cần

    Prompt hệ thống chỉ chứa tên và mô tả. Hướng dẫn được tải khi có yêu cầu phù hợp đầu tiên, nên kỹ năng chưa dùng không tốn chi phí.

  • Đổi mô hình ngay trong cuộc trò chuyện

    Vì kỹ năng là hướng dẫn chứ không phải mã, việc đổi mô hình không làm kỹ năng ngừng hoạt động — mô hình tiếp theo vẫn đọc cùng tệp SKILL.md.

Hướng dẫn của kỹ năng

Đây là nội dung SKILL.md mà mô hình tải. Hãy đọc trước khi cài đặt — kỹ năng là những hướng dẫn mà mô hình của bạn sẽ làm theo.

setup — bring this repo onto spec-flow's prerequisites

You are the PM/lead in the main session (like groom/adopt-tiering — not tied to any issue, no worktree). Turn the README's Prerequisites checklist from something the owner reads and self-diagnoses into something you actually walk them through: explore what's already true, then only ask about what isn't — each item with your own recommended action stated up front, so the owner can accept in one word. Same interview discipline groom uses for scope (see its steps 1 and 4), and the Presenting to the owner contract in docs/workflow.md: one question per message, in its question format, recommended default alongside it, ordered so an earlier answer can make a later question moot. Step 1's read-only checks run in parallel, and their results are shown as information: they ask nothing, so they may be shown together.

Steps

  1. Explore first — batch every read-only check together (parallel tool calls, not sequential):

    • OpenSpec: command -v openspec and ls openspec 2>/dev/null — installed? initialized in this repo?
    • GitHub: gh auth status (authenticated? which account, if more than one is configured?) and gh repo view --json nameWithOwner,defaultBranchRef (repo actually hosted on GitHub, and confirms the default branch name for later).
    • Labels: gh label list --json name --jq '[.[].name]' — compare against the full set bin/bootstrap-labels.sh creates (P0-P3, status:ready, status:spec-review, status:in-progress, status:in-review, status:addressing, agent:active, blocked, needs-attention, type:docs, merge-on-green, type:tech-debt, tech-debt-review). blocked is only for a blocker that is not an issue; a dependency on another issue is a native GitHub issue dependency, with no label.
    • Agent teams: read .claude/settings.json in this repo (if it exists) for env.CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS.
    • Seam visualization: read .claude/settings.json for env.SPEC_FLOW_SEAM_VIEW, and whether the standalone dev-skills plugin is installed/enabled: claude plugin list --json | jq -e '[.[] | select(.id | startswith("dev-skills@")) | select(.enabled)] | length > 0'.
    • Developer agent: read .claude/settings.json for env.SPEC_FLOW_DEVELOPER_AGENT, and detect the project's language (a Cargo.toml for Rust; a build.gradle.kts/.kt sources for Kotlin; a pom.xml/.java sources for Java). Reuse the same dev-skills availability check as Seam visualization above; do not run it twice.
    • Refactor circuit breaker: read .claude/settings.json for env.SPEC_FLOW_REFACTOR_BREAKER.
    • Gitignore: read .gitignore (if it exists) for .claude/worktrees/ and .spec-flow/ entries. Also run git check-ignore -v spec-flow/TESTING.md spec-flow/WORKFLOWS.md — it must find no match. A match means the repo is ignoring its own committed configuration directory, which is a bug, not a preference.
    • Repo policy: run the check that every other entry point runs —
      bash
      bash ${CLAUDE_PLUGIN_ROOT}/scripts/repo-config.sh check
      Exit 0 means this repo already owns its policy and the seeding item below is skipped. Exit 1 means it does not. Exit 2 means the environment is wrong (not a git repo, or a bad SPEC_FLOW_CONFIG_DIR); relay the script's message and fix that first — never offer seeding on exit 2.
    • CI tiering: the same detection adopt-tiering step 1 uses — Gradle (src/integrationTest source set / JVM Test Suite present?), Rust (.config/nextest.toml tier default-filters present?), or neither pattern recognized (unknown stack — don't guess, ask).
    • Default agent wiring: read .claude/settings.json for an agent field already pointing at spec-flow:project-manager or similar.
  2. Walk through only what's missing, one item per message — recommended default first, skip anything step 1 already confirmed. Show step 1's results first, as information. Then list every item that needs an answer as bullets, and ask about each one in its own message, in the format in Presenting to the owner in docs/workflow.md; ask the next only after the owner answers. For each:

    • OpenSpec not initialized → tell the owner precisely what's missing (CLI not installed, or installed but no openspec/ here) and point them at OpenSpec's own install/init docs — don't guess at exact init flags for a tool this skill doesn't own.

    • gh not authenticated, or multiple accounts configured → point at gh auth login / gh auth switch; if multiple hosts/accounts are configured, flag the exact multi-account footgun README's Prerequisites already documents (every spec-flow gh call is unscoped, so whichever account is active by default is the one they all act as).

    • Labels missing (any of the full set) → recommend running the bootstrap now (idempotent, safe to re-run, so default yes):

      bash
      bash ${CLAUDE_PLUGIN_ROOT}/bin/bootstrap-labels.sh
    • .gitignore missing either entry → recommend adding both together (they're the same category of one-time setup — see README's Prerequisites), default yes, then actually edit the file:

      .claude/worktrees/
      .spec-flow/

      Add .spec-flow/ with the leading dot. Never add spec-flow/. They differ by one character and mean opposite things: .spec-flow/ is gitignored per-branch runtime state, while spec-flow/ is the repo's committed configuration. Worse, a trailing-slash pattern with no interior slash matches at any depth, so spec-flow/ in this plugin's own repo would match plugins/spec-flow/ and erase the plugin's entire source from git.

    • spec-flow/ is matched by a gitignore rule (step 1's git check-ignore -v found one) → say so plainly, name the rule and the file it lives in, and recommend removing it, default yes. The repo cannot commit its own configuration while that rule stands, so the check will keep failing no matter how many times seeding runs.

    • No repo policy (step 1's repo-config.sh check exited 1) → this is the one item that acts outward: it opens a PR. See the carve-out in Rules below. Work it in three moves.

      The check names every config file the repo is missing, and they seed together — one proposal, one confirmation, one branch, one PR. Today that is TESTING.md (the test and CI policy) and WORKFLOWS.md (the review panel and its gate). Propose each file the check named, show them together, and land them in a single seed-config.sh call. Never seed one and leave the other: the check keeps failing either way, and the owner would confirm twice for one outcome.

      First, propose. Read the repo and write a concrete policy for it — not a template with blanks. Say what runs locally on every TDD cycle, what CI runs, whether CI is a test gate at all, and what gates merge. Reuse step 1's tiering detection, and read the repo's own .github/workflows/ (or equivalent) rather than assuming. Propose for any stack, however little you recognized: a proposal the owner confirms is not a guess, and detection only makes the proposal better or worse, never mandatory. State plainly what you could not determine and what you inferred instead, so the owner knows which lines to check hardest.

      A repo with no test suite and no test-running CI is a first-class policy, not a gap. Write that plainly when it is true. Never invent a test command the repo does not run.

      Open the proposed file with a header that says, in the repo's own voice:

      • This repo owns this file.
      • spec-flow reads it and ships no default; if it goes away, the pipeline stops rather than falling back to anything.
      • Every line is the owner's to change, including the local/CI split itself.
      • Keep it short: every implementation and review agent reads it on every run.

      Then state the local gate, what CI does, what gates merge, and the push cadence. Say plainly that the local gate runs on every TDD cycle, so the owner sees the cost of what they are choosing. spec-flow/TESTING.md in this plugin's own repo is a worked example of a policy nothing like the old shipped default.

      For WORKFLOWS.md, the same rules apply with a different subject: it states which review lenses run, what counts as must-fix, and the round cap. Read the repo first — a repo with an established review culture may want fewer lenses, or none at all. A policy of "no automated panel; the owner's review is the gate" is first-class, exactly like a repo with no test suite, and the pipeline supports it directly: no lens runs, no fix loop runs, and the PR says plainly that no panel ran. ${CLAUDE_PLUGIN_ROOT}/references/WORKFLOWS.md.template holds the panel spec-flow has always run, as a starting point — the same "open it only if it fits" rule as the test template below. spec-flow/WORKFLOWS.md in this plugin's own repo is a worked example that keeps the default and says why each lens earns its slot.

      Only where you have already determined that the repo has the tiered shape — a suite split structurally into a fast tier and a slow tier, CI that runs the tests, and merge gated on green CI — open ${CLAUDE_PLUGIN_ROOT}/references/TESTING.md.template and use its wording. That is the policy spec-flow used to hardcode, so a repo adopting it gets one canonical baseline instead of a fresh paraphrase. For any other shape, do not open that file. Read the repo first and let it decide the shape; never let the template decide it. It is one policy, not the policy, and nothing in the pipeline reads it at runtime.

      Second, confirm. Show the owner the full proposed file and wait. If the proposal uses the template's wording, say so alongside the file and name the evidence for each of the three conditions — where the structural split is enforced, which workflow runs the tests, and what makes merge gated on green CI — so the owner can check the shape came from the repo. Write nothing until they confirm or amend it — not a draft file, not a branch, nothing. If they amend it, show the amended version and confirm again.

      Third, land it. What you write carries neither the seeding notes above the template's boundary marker nor any reference to the template — the file reads as the repo's own policy. Write each confirmed file to its own temporary file, then pass them all in one call as <target>=<content-file> pairs:

      bash
      bash ${CLAUDE_PLUGIN_ROOT}/scripts/seed-config.sh \
        TESTING.md=<content-file> WORKFLOWS.md=<content-file>

      Pass only the files the check named as missing. The script discovers the default branch, checks it for each existing policy, skips any already present and usable, and puts the rest in one branch, one commit and one PR. It never commits or pushes to the default branch, never merges, and never touches the owner's working tree. Relay its output. Tell the owner the check keeps failing until that PR merges and their branch carries it.

    • Agent teams env var unset → explain the tradeoff in one line (richer team-led implement vs. the automatic workflow-mode fallback, which works fine without it) and recommend enabling it, default yes but genuinely optional — unlike the label/gitignore items, this is a real preference, not just a missing mechanical setup step; if the owner says no, that's a fully supported, unremarkable choice. If yes, add to .claude/settings.json:

      json
      { "env": { "CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS": "1" } }

      merging into whatever's already there rather than overwriting the file.

    • Seam visualization preference unset, AND the dev-skills plugin is installed/enabled (skip this item entirely if dev-skills isn't installed — don't offer a preference for a plugin the owner doesn't have; they can install it and re-run setup any time) → explain the choice in one line: at both owner seams (design approval, in-review), activate/implement can either generate an interactive HTML view via dev-skills's ide-explain skill — file tree, diff view, docs, all in one place — or render the same content as plain text in the terminal, same as before that plugin existed. Recommend the HTML view, default yes, but genuinely optional — like agent teams, a real preference, not a mechanical default. If yes:

      json
      { "env": { "SPEC_FLOW_SEAM_VIEW": "explain" } }

      If the owner prefers terminal-only:

      json
      { "env": { "SPEC_FLOW_SEAM_VIEW": "terminal" } }

      merging into whatever's already there. activate/implement read this fresh at each seam, and re-check dev-skills's availability every time rather than trusting this one-time detection — see Seam visualization in docs/workflow.md.

    • Developer agent unset, AND the dev-skills plugin is installed/enabled, AND the project is a language it covers (Rust, Kotlin, and Java today) → explain the choice in one line: implement spawns spec-flow's own tdd-developer by default, which is language-neutral; dev-skills ships an agent that knows the language. For Rust, rust-dev reads the full Rust style guide, carries a token-frugal nextest recipe, and hands build problems to its cargo agent. For Kotlin, kotlin-dev reads the full Kotlin style guide and hands builds to its gradle-expert agent. For Java, java-dev matches the project's own conventions exactly, which is what an OSS contribution needs. Recommend the language agent, default yes. Name the agent that matches the language you detected. If yes, for Rust:

      json
      { "env": { "SPEC_FLOW_DEVELOPER_AGENT": "rust-dev" } }

      Use kotlin-dev or java-dev in place of rust-dev for those languages. merging into whatever's already there. If the owner declines, write nothing; unset already means tdd-developer. Skip this item entirely if dev-skills isn't installed, or if the project's language has no agent in it yet; don't offer a preference the owner can't use. See Developer agent in docs/workflow.md.

    • Refactor circuit breaker unset → explain the choice in one line: on a type:tech-debt run (behavior-preserving work), implement stops a developer agent that has edited the same test file more than twice, because three edits to one test file means the classification was wrong or the step was too big. It does not arm on ordinary feature work, where repeated edits to one test file are normal. Ask what should happen at that point. Recommend ask, the default — the run stops and the owner decides whether to continue or revert:

      json
      { "env": { "SPEC_FLOW_REFACTOR_BREAKER": "ask" } }

      For a repo that wants the strict Mikado reflex instead, "revert" reverts to the last green commit automatically. For a repo that wants no breaker at all, "off". Merge into whatever's already there. Leaving it unset is fine too; ask applies either way — see Refactor circuit breaker in docs/workflow.md.

    • CI not tiered → don't attempt this here, it's its own migration. Just point at /spec-flow:adopt-tiering and explain in one line what it does; recommend running it next, but leave the decision (and the run) to the owner.

    • Stack not recognized for tiering → say so plainly and ask instead of guessing: "what test runner does this repo use?" (recommended default only if the explored file listing already hints at one, e.g. a Cargo.toml with no nextest config yet suggests Rust).

  3. Offer default-agent wiring last, only after everything above is resolved (or explicitly declined). Not a Prerequisite exactly — a convenience project-manager's own description already recommends. Ask once, recommend yes: "Want project-manager wired as this repo's default agent, so it's your standing entry point?" If yes, add to .claude/settings.json:

    json
    { "agent": "spec-flow:project-manager" }

    merging into whatever's already there. This is the consuming repo's own .claude/settings.json, the owner's explicit choice for their repo — not the plugin shipping a default (see the plugin root's own CLAUDE.md rule against that; it doesn't apply here, this is the opposite case).

  4. Report. Summarize what was already fine, what you just fixed, and what's left as the owner's own call to make later (agent teams if declined, adopt-tiering if not run). Suggest /spec-flow:groom or /spec-flow:board as the natural next step.

Rules

  • Explore before asking — never ask about something step 1 already answered. The entire point is collapsing a self-service checklist into "here's what's actually missing," not restating the whole README as a question set.
  • One question per message, recommended default stated up front, in the format in Presenting to the owner in docs/workflow.md, same convention as groom's step 1 — never a batch of "here are five things, pick your answers." The check results are information and ask nothing.
  • Mechanical, low-risk items (labels, gitignore) get a confident recommended default and act on a one-word yes. Genuine preferences (agent teams, default-agent wiring) get the same recommended-default treatment but are flagged as real choices, not just confirmations.
  • Never run /spec-flow:adopt-tiering or openspec init on the owner's behalf — point at them, let the owner (or a follow-up invocation) actually run them. This skill's own scope is the README's Prerequisites list, not those skills' work.
  • Local edits only, with exactly one carve-out. Everything else this skill does — labels aside — edits files in the owner's checkout and stops there. Seeding the repo policy is the one deliberate exception: it opens a PR, mirroring adopt-tiering. It still never commits or pushes to the default branch and never merges, and it writes nothing at all until the owner has confirmed the proposed policy. That is the whole of the exception; do not read it as licence for any other outward action.
  • Safe to re-run any time — step 1's exploration is what makes every subsequent run only ever ask about what's still actually missing.

Câu hỏi thường gặp

Kỹ năng AI Setup làm được gì?

Interactively bring a repo onto spec-flow's Prerequisites — OpenSpec init, gh auth, the label vocabulary, the agent-teams env var, the seam-visualization preference, the refactor circuit breaker, the .gitignore entries, the repo's own spec-flow/TESTING.md test and CI policy (proposed, confirmed with the owner, then landed on a branch as a PR — the one outward action this skill takes), and CI test-tiering state. Explores what's already true first, shows the check results as information, then asks about each item still missing in its own message, with a recommended default. Run once per repo,...

Vì sao nên dùng Setup trên TypingMind?

Vì bạn chỉ cần cài một lần rồi dùng với bất kỳ mô hình nào. Setup là nội dung Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên cùng một kỹ năng có thể chạy trên GPT-5, Claude, Gemini, Grok hoặc mô hình trên thiết bị — và bạn có thể đổi mô hình ngay trong cuộc trò chuyện mà kỹ năng vẫn hoạt động. TypingMind dùng khóa API riêng của bạn, nên bạn thanh toán trực tiếp cho nhà cung cấp thay vì trả phí thuê bao theo suất người dùng, đồng thời kỹ năng và các cuộc trò chuyện vẫn nằm trong bộ lưu trữ của bạn.

Làm thế nào để cài Setup trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/rustyrazorblade/skills/tree/main/plugins/spec-flow/skills/setup. TypingMind đọc tệp SKILL.md và cài đặt thành một kỹ năng mà bạn có thể bật cho từng cuộc trò chuyện.

Những mô hình AI nào có thể dùng Setup?

Bất kỳ mô hình nào bạn kết nối trong TypingMind. Kỹ năng AI là các hướng dẫn bằng Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên GPT, Claude, Gemini, Grok và các mô hình chạy trên thiết bị đều có thể tải kỹ năng này khi có yêu cầu phù hợp.

Bạn có thể dùng Setup với bao nhiêu mô hình AI?

Bao nhiêu cũng được. Miễn là mô hình hỗ trợ kỹ năng, bạn có thể dùng Setup với mô hình đó — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama và nhiều mô hình khác — tất cả đều trên TypingMind với khóa API riêng của bạn.

Kỹ năng AI Setup có miễn phí không?

Có. Kỹ năng này được rustyrazorblade phát hành trên GitHub theo giấy phép Apache-2.0. Bạn chỉ trả tiền cho nhà cung cấp AI của mình theo số token đã dùng.

Kỹ năng AI là gì?

Kỹ năng AI là một gói hướng dẫn có thể tái sử dụng, chỉ cho mô hình AI cách thực hiện một tác vụ cụ thể. Kỹ năng tuân theo định dạng mở Agent Skills: một tệp SKILL.md chứa tên và mô tả, cùng các tập lệnh, mẫu hoặc tệp tham khảo mà mô hình có thể cần. Mô hình chỉ đọc hướng dẫn khi yêu cầu của bạn phù hợp với kỹ năng, nên kỹ năng đã cài đặt không phát sinh chi phí cho đến khi được sử dụng.

Kỹ năng AI khác gì với plugin hoặc máy chủ MCP?

Plugin hoặc máy chủ MCP cung cấp cho mô hình các công cụ mới để gọi — mã được chạy ở đâu đó và trả về kết quả. Còn kỹ năng AI cung cấp kiến thức và quy trình: cách tiếp cận tác vụ, các bước cần thực hiện và tiêu chí của đầu ra tốt. Kỹ năng chỉ là nội dung Markdown, nên không cần máy chủ, khóa API hay môi trường thực thi và hoạt động với mọi mô hình.

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇