Token导航 LogoToken导航

Agent Skill · 研究检索

swe-workflow(瑞典工作流程)

swe-workflow 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

swe-workflow 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为需要联网;许可证信息还不明确,第三方扫描已通过,按安装量在研究检索类的 73,675 个 Skill 里排第 62,244。

总安装 339周安装 14GitHub Stars 公开资料未说明下载 111核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:swe-workflow(瑞典工作流程)
来源仓库:https://github.com/ex-git/swe-workflow
仓库路径:skills/swe-workflow
安装命令:
npx skills add https://github.com/ex-git/swe-workflow --skill swe-workflow
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/ex-git/swe-workflow --skill swe-workflow

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

用于查找、检索和筛选相关信息。适合根据关键词或任务场景快速定位候选结果。可结合来源仓库和原始 README 核验具体用法。安装命令:npx skills add https://github.com/ex-git/swe-workflow --skill swe-workflow。安装前建议确认权限范围和维护状态。

来源仓库内路径:skills/swe-workflow

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/ex-git/swe-workflow --skill swe-workflow;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要需要联网,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

swe-workflow 怎么安装?

在终端执行 npx skills add https://github.com/ex-git/swe-workflow --skill swe-workflow。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

swe-workflow 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

swe-workflow 需要什么权限?

权限级别是需要联网。该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

swe-workflow 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

swe-workflow 用的人多吗?

公开数据是累计安装 339 次,近一周安装 14 次,下载 111 次。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

swe-workflow 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 第三方扫描已通过,常见的高风险行为没有命中。

先想清楚的地方

  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。

不太适合

  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

研究检索类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
find-skills

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
swe-workflow

瑞典工作流程 · 本页

339—需要联网未明确通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

SWE Workflow

Behavioral guards for all code-related tasks, plus a structured development workflow for complex coding tasks — compatible with Pi, Claude Code, Cursor, Codex, Gemini, and other agents supporting the Agent Skills spec.

Apply the Behavioral Guards to every coding task. Every code task starts with workflow triage; use plan files only when the task is large, ambiguous, or hits a mandatory Full workflow trigger.

Mandatory Workflow Triage — All Code Tasks

Before using any write/edit/delete tool for a code-related task, declare the workflow mode. The first assistant response for code work MUST include:

Workflow mode: Lightweight | Full
Reason: <one sentence>
Success criteria:
- <what done means>
Plan needed: yes | no

If the task is already in progress and plan files exist, declare Full workflow mode and use the resume protocol before making implementation edits.

You MUST choose Full workflow mode for:

  • repo-wide scans, migrations, or cleanup
  • lint/type/build/test cleanup
  • broad refactors or behavior-preserving rewrites touching multiple files
  • deleting files or moving/renaming files
  • backend + frontend/UI changes in one task
  • API/schema/route/tooling/configuration contract changes
  • docs/source-of-truth updates, including changes to this skill's workflow rules
  • any task expected to touch more than 3 files
  • any task where scope or success criteria are ambiguous

If a task begins in Lightweight mode but later hits any Full workflow trigger, STOP before further edits, declare escalation to Full workflow mode, create/update the plan, and continue from the current verified state.

Operating Modes

ModeUse whenRequired behavior
Lightweight modeSimple edits, quick fixes, clear debugging, small refactors, code review/explanation, and none of the mandatory Full triggers applyApply Behavioral Guards; work directly without plan files
Full workflow modeAny mandatory Full trigger, multiple interdependent files, ambiguous scope, explicit upfront planning, or work that benefits from resumable stateApply Behavioral Guards + require clarification, create plan files, execute one verified step at a time

Full workflow decision test: use full workflow mode if any answer is "yes":

  1. Does a mandatory Full workflow trigger apply?
  2. Does this require tracking state across multiple files?
  3. Would I benefit from writing down a plan before starting?
  4. Is the scope unclear enough to need clarification?

If all four are "no", stay in Lightweight mode. Do not create plans/ files just to satisfy the workflow.

Behavioral Guards — Apply to All Code Tasks

These guards are always active when writing, reviewing, debugging, or refactoring code, regardless of whether full workflow mode is used.

1. Think Before Coding

  • State assumptions explicitly when they matter.
  • If multiple interpretations exist, present them instead of silently choosing one.
  • If something important is unclear, stop and ask a targeted question.
  • Surface tradeoffs when there is more than one reasonable approach.
  • Push back when the requested approach is likely overcomplicated, risky, or inconsistent with the codebase.

2. Simplicity First

  • Write the minimum code that solves the requested problem.
  • Do not add features, abstractions, configurability, or flexibility that were not requested.
  • Avoid abstractions for single-use code.
  • Do not add defensive handling for impossible or irrelevant scenarios.
  • If the implementation feels much larger than the problem, simplify before proceeding.

3. Surgical Changes

  • Touch only files and lines needed for the request.
  • Do not perform unrelated cleanups, formatting changes, comment rewrites, renames, or refactors.
  • Match existing code style and patterns, even if you would choose differently in new code.
  • If you notice unrelated dead code or quality issues, mention them; do not fix them unless asked.
  • Remove imports, variables, functions, or files only when your own changes made them unused or obsolete.
  • Every changed line should trace directly to the user request or the current plan step.

4. Goal-Driven Execution

  • Define what success means before implementing.
  • Prefer verifiable checks: tests, type checks, lint, build, or documented manual verification.
  • For new utilities, functions, modules, or components, add focused tests covering happy path, edge cases, and error paths when a test framework exists.
  • For bug fixes, prefer a regression test or reproduction before/alongside the fix.
  • For refactors, preserve behavior and verify before and after when practical.
  • Run configured project quality gates, including pre-commit hooks such as lefthook, before calling work done.
  • Loop until the requested behavior is verified or clearly report what could not be verified.

Full Workflow Quick Start

Use this table only after choosing full workflow mode.

Starting pointLoad reference
New task or featurerequire-clarification
Create plan from clarified requestcreate-plan
Resume existing work (new session, handoff)resume-workflow
Execute the next PENDING stepexecute-step

Compact Full Workflow — Cleanup, Refactor, Lint

Use this compact variant when a broad cleanup/refactor/lint task triggers Full workflow mode but does not need a feature-spec plan:

  1. Create plans/<task>.md with a checklist of categories or file groups.
  2. Scan and record findings before fixing them.
  3. Fix one category or file group at a time as the current IN_PROGRESS step.
  4. Verify after each category with the relevant lint/type/build/test/manual check.
  5. Update repo map, plan status, and any affected source-of-truth docs before moving on.

This is still Full workflow mode: plan file required, one verified step at a time, no batching unrelated fixes.

Full Workflow File Structure

Created only in full workflow mode.

plans/
├── repo-map.md      # Project-wide file inventory (shared across all plans)
├── context.md       # Current session state (overwritten each pause)
└── <task>.md        # Task-specific plan and progress (one per feature)
FileScopeUpdatedPurpose
repo-map.mdProjectWhen files are discoveredNavigation, shared file knowledge
context.mdSessionBefore each pauseResume capability across sessions
<task>.mdTaskAfter each stepTask tracking and progress

Full Workflow Phases

1. Understand — require-clarification

Analyze scope, inputs, outputs, success criteria. Ask targeted questions if ambiguous. Get explicit user confirmation before planning.

2. Plan — create-plan

Break work into small ordered steps (5–15 min each). Save to plans/<feature>.md. Initialize plans/repo-map.md if absent. Use plan-template and repo-map-template.

3. Execute — one step at a time

For each PENDING step:

  1. execute-step — protect code, implement only what's in scope
  2. verify-step — validate + test + review diff (single gate)
  3. maintain-repo-map — ensure every touched file is tracked
  4. persist-plan — mark COMPLETED, update context

Every 2–3 steps (or after risky changes): reflect-after-changes.

Before pausing to ask the user anything: dump-context.

4. Reflect — global-reflection

After all steps COMPLETED. Re-read everything, verify the goal was achieved.

Skill Chain

require-clarification → create-plan → execute-step → verify-step → maintain-repo-map → persist-plan
                                            ↑_______________________________________________|
                                                    (next PENDING step)

   every 2-3 steps: reflect-after-changes     before pausing: dump-context
   all steps done:  global-reflection

Reference Guide

ReferencePurposeWhen
require-clarificationClarify ambiguous requestsBefore any planning
create-planCreate structured planAfter clarification
resume-workflowResume existing workNew session / handoff
execute-stepImplement one step (includes code protection)Ready to code
verify-stepValidate, test, and review diffAfter implementation
maintain-repo-mapTrack file locationsPlanning + after each step
persist-planUpdate plan statusAfter any progress
dump-contextSave session stateBefore pausing for user
reflect-after-changesCatch complexity earlyEvery 2–3 steps
global-reflectionFinal feature reviewAll steps complete

Full Workflow Guards

In Full workflow mode, do NOT proceed if:

ConditionRequired action
No plan file exists and you are not currently creating the required workflow plan filesRun create-plan
About to edit task target files but no step is IN_PROGRESSMark the current PENDING step IN_PROGRESS via execute-step first
Intended edit does not map to the current IN_PROGRESS stepSTOP; update the plan or ask for clarification before editing
A different step is already IN_PROGRESSComplete or revert it before starting another
Clarification has open questionsRun require-clarification
verify-step failedFix issues first
Repo map not synchronized with Files ChangedUpdate plans/repo-map.md first
Pausing for user without dumping contextRun dump-context first

Pre-edit hard stop: before any write/edit/delete tool call that changes task target files in Full workflow mode, a plan file must exist, exactly one current step must be IN_PROGRESS, and the intended edit must belong to that step. Only workflow bookkeeping files (plans/*.md) may be created or updated before this gate is satisfied.

Status Values

StatusMeaning
PENDINGNot started
IN_PROGRESSCurrently being worked on
COMPLETEDDone, verified, repo map synced
BLOCKEDCannot proceed (reason documented)

Full Workflow Core Constraints

  • One step at a time — never batch multiple steps.
  • Stay in scope — do not touch files outside the step's Plan.
  • Trust the plan — do not redo COMPLETED steps.
  • Persist reality — keep <task>.md accurate at all times.
  • Maintain the repo map — every touched file must be in plans/repo-map.md.
  • Dump context before pausing — preserves session for resume.
  • Never mark COMPLETED with known issues — fix or mark BLOCKED.

Full Workflow Resume Protocol

When starting a fresh session on existing full workflow work, read three files in this order:

  1. plans/context.md — where work stopped, recent decisions
  2. plans/<task>.md — full task definition and step progress
  3. plans/repo-map.md — file locations and architecture notes

See resume-workflow for the full procedure and edge cases (missing context file, multiple plans, stale plan, etc.).

Templates

Why Full Workflow Mode Works

  • Isolated steps — Prerequisites and Deliverables make each step self-contained; a new session can pick up any step.
  • Preserved learnings — Context & Learnings captures decisions, not just actions, so they aren't re-litigated.
  • Fresh context per session — New session + three-file resume protocol = no accumulated confusion.
  • Plan-driven, not memory-driven — The agent reads the plan to know state, not its own context window.
  • Cross-task knowledge — repo-map.md survives across tasks; patterns and file locations compound.

平台分布

Codex

34.95%
按下载量换算39

Claude

31.74%
按下载量换算35

Cursor

18.07%
按下载量换算20

Gemini CLI

9.31%
按下载量换算10

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills