跳到正文
cccskills
免费在 GitHub 公开

sync

Syncs WDS skills from the current project (_bmad/wds/) to ~/.claude/commands/ so they work in any project. Called automatically on every agent activation.

中文简介正在准备中。当前显示原文说明。

查看安装方法

包含的文件(1)

  • SKILL.md4.1 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

WDS Sync

Keeps ~/.claude/commands/ current with the WDS installation in the active project. Agents call this silently on every activation. Users can also call it directly.


Entry points

On agent activation — silent mode

  • First time (no global commands exist): ask the user once, then sync.
  • Subsequent activations: compare files, sync silently if changed, skip if identical.
  • Never block activation. If sync fails for any reason, continue.

Direct user request ("sync", "update WDS", "sync skills", "check for updates") — verbose, report each step.


Steps

1 — Locate project installation

Find _bmad/wds/ relative to the current project root.

If _bmad/wds/ does not exist:

  • Silent mode: stop silently.
  • Verbose mode: ⚠️ WDS not installed in this project. Run: npx bmad-method install

Store the source root: WDS_SRC = {project-root}/_bmad/wds


2 — Detect home directory

# Mac / Linux
HOME_DIR="$HOME"

# Windows (PowerShell)
$HOME_DIR = $env:USERPROFILE

Destination directories:

  • Commands: {HOME_DIR}/.claude/commands/
  • Tools: {HOME_DIR}/.claude/wds/tools/memory/
  • Data: {HOME_DIR}/.claude/wds/data/

3 — Check sync state

Check if {HOME_DIR}/.claude/commands/wrap.md exists.

First time (file missing): go to step 4 — ask user.

Already synced: compare {HOME_DIR}/.claude/commands/wrap.md to {WDS_SRC}/skills/wrap.md.

# Mac / Linux
diff -q "{HOME_DIR}/.claude/commands/wrap.md" "{WDS_SRC}/skills/wrap.md"

# Windows
Compare-Object (Get-Content "{HOME_DIR}\.claude\commands\wrap.md") (Get-Content "{WDS_SRC}\skills\wrap.md")

If identical: finish silently. If different: go to step 5 — sync silently.


4 — First time: ask user

Print exactly:

WDS is installed in this project but skills are not yet available globally.
Sync now? Adds /saga /freya /mimir /start /wrap /handoff to all Claude Code sessions.
[Y/n]

If n: stop. Do not ask again this session. If y (or Enter): go to step 5.


5 — Sync files

Create destination directories if they don't exist:

# Mac / Linux
mkdir -p "{HOME_DIR}/.claude/commands"
mkdir -p "{HOME_DIR}/.claude/wds/tools/memory"
mkdir -p "{HOME_DIR}/.claude/wds/data"

# Windows
New-Item -ItemType Directory -Force "{HOME_DIR}\.claude\commands"
New-Item -ItemType Directory -Force "{HOME_DIR}\.claude\wds\tools\memory"
New-Item -ItemType Directory -Force "{HOME_DIR}\.claude\wds\data"

Copy agent commands:

SourceDestination
{WDS_SRC}/skills/saga.activation.md{HOME_DIR}/.claude/commands/saga.md
{WDS_SRC}/skills/freya.activation.md{HOME_DIR}/.claude/commands/freya.md
{WDS_SRC}/skills/mimir.activation.md{HOME_DIR}/.claude/commands/mimir.md
{WDS_SRC}/skills/start.md{HOME_DIR}/.claude/commands/start.md
{WDS_SRC}/skills/wrap.md{HOME_DIR}/.claude/commands/wrap.md
{WDS_SRC}/skills/handoff.md{HOME_DIR}/.claude/commands/handoff.md

Copy tools and data:

SourceDestination
{WDS_SRC}/tools/memory/SKILL.md{HOME_DIR}/.claude/wds/tools/memory/SKILL.md
{WDS_SRC}/data/wds-glossary.md{HOME_DIR}/.claude/wds/data/wds-glossary.md
{WDS_SRC}/data/agent-contracts.md{HOME_DIR}/.claude/wds/data/agent-contracts.md
{WDS_SRC}/data/shared-activation.md{HOME_DIR}/.claude/wds/data/shared-activation.md

Skip any source file that does not exist — do not error.


6 — Report

First-time / direct call:

✓ WDS skills synced to ~/.claude/commands/
  /saga  /freya  /mimir  /start  /wrap  /handoff

Silent update (changes detected):

✓ WDS skills updated.

No changes (direct call only):

WDS skills are up to date.

Silent mode with no changes: no output.

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

memory

免费

Session state backend for WDS. Called by wrap, start, and handoff tools — never directly by users. Writes to progress/ in the project repo.

中文简介正在准备中。当前显示原文说明。

bmad-code-org/bmad-method-wds-expansion902026年5月30日 更新

Create alignment around your idea before starting the project

中文简介正在准备中。当前显示原文说明。

bmad-code-org/bmad-method-wds-expansion902026年5月30日 更新

Project onboarding - determine project type, complexity, tech stack, and route to correct phase

中文简介正在准备中。当前显示原文说明。

bmad-code-org/bmad-method-wds-expansion902026年5月30日 更新

Establish project context - foundation for all design work

中文简介正在准备中。当前显示原文说明。

bmad-code-org/bmad-method-wds-expansion902026年5月30日 更新

Map business goals to user psychology through structured workshops

中文简介正在准备中。当前显示原文说明。

bmad-code-org/bmad-method-wds-expansion902026年5月30日 更新

Create UX scenario outlines from Trigger Map through structured micro-steps

中文简介正在准备中。当前显示原文说明。

bmad-code-org/bmad-method-wds-expansion902026年5月30日 更新

查看 bmad-code-org 的全部技能

报告此技能的问题