Token导航 LogoToken导航TokenDH.com
研究检索需要联网github未标认证来源可访问许可证需确认审计通过

swe-workflow瑞典工作流程

Agent Skill

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

总安装

339

周安装

14

GitHub Stars

公开资料未说明

下载量

111
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 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

简介

用于查找、检索和筛选相关信息。

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

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 knowledgerepo-map.md survives across tasks; patterns and file locations compound.

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

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