跳到正文
cccskills
免费在 GitHub 公开

save

Save current Egregore work: validate distribution, commit the task branch, push it, and create or reuse a PR against the configured integration branch.

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

egregore-labs/egregore星标 293(GitHub 293 + cccskills 0)

实测评分 未实测

查看安装方法

包含的文件(1)

  • SKILL.md5.6 KB

SKILL.md(原文)

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

Save work without asking the user to manage Git mechanics.

When to invoke

Use for “save”, “commit and push”, “push this work”, or $save. When the user is ending a session and needs a durable continuation record, use handoff or wrap first; their canonical writes are already independently durable.

Contract

  • bin/agent.sh save is the one runtime-neutral Git transaction for Claude, Codex, Pi, and Prime.
  • Resolve the integration branch from egregore.json; never hardcode develop or main.
  • Do not scan or mutate the graph before/after saving. Canonical lifecycle and projection repair are separate Runtime operations.
  • Do not repeat canonical artifact writeback. Save only outstanding repository changes and already-created memory records.
  • The current Git/GitHub transport remains valid but is behind the sync boundary; GitHub identity is not ActorIdentity.

Flow

  1. Inspect branch, working-tree changes, memory changes, ahead count, and an existing PR. A clean tree can still need a push/PR when the branch is ahead.
  2. Resolve the configured integration branch first:
bash bin/base-branch.sh

It prints the branch name; for a managed repo run bash bin/base-branch.sh <repo-name>. A non-zero exit means the configuration could not be resolved: stop before any Git change. Use the printed name wherever {base} appears below.

Stop before mutation if it cannot be resolved.

  1. The shared bin/agent.sh save preflight runs distribution validation, the change report, and the strict Runtime-skill audit before any memory or project mutation. Both engine and registry must exist; installed public instances intentionally omit the development engine.

    It also prints an advisory affected-skill receipt from the branch diff, staged/unstaged edits, and relevant untracked files. Read the named instructions for drift and include material findings in PR verification; ordinary edits require no new approval. A missing base is reported as an unavailable review, never as zero affected skills. Set EGREGORE_SKILL_REVIEW=0 only to explicitly disable this advisory receipt.

Ask one placement question only for a genuinely new/unclassified component or an explicit placement change. Ordinary edits to an existing component do not prompt.

For that question, show artifacts/capability-pipeline.html and offer:

  1. OSS + Connect — part of the open runtime; Connect inherits it.
  2. Connect only — delivered only to authenticated Connect users.
  3. Curve Labs / Egregore — used only in this development instance.

Record each new component as queued under the selected placement with all its governed source paths. Availability changes separately after review. Group components in one checkpoint only when they share a placement. Apply the decision to capability-distribution.json, regenerate skill-distribution.json and both artifacts, then validate again. Rebuild runtime packs when an available runtime component changes placement. Reuse an explicit placement decision from the current work; do not ask twice.

  1. Derive:
  • a short topic;
  • a commit subject/body under .claude/context/commit-format.md;
  • a PR body under .claude/context/pr-format.md, including honest verification for non-Markdown changes.

If unrelated changes make the save scope ambiguous, show one Save all / Narrow scope checkpoint. Otherwise continue without ritual confirmation.

  1. Choose readiness from the work's actual state, without a permission ritual:
  • While implementation or review continues, use --draft. New code PRs are drafts by default; passing --draft also converts an existing ready PR before pushing, avoiding paid checks on unfinished iterations.
  • When the requested work is complete and local QA/review has passed, use --ready. For an existing draft, the bridge pushes the final head before marking it ready, so CI checks the saved version. If checks fail or another edit is needed, use --draft for the next in-progress save.
  • Non-coding saves keep their existing ready/auto-merge behavior. Omit the readiness flag unless the work should deliberately remain a draft.
  • Without a flag, existing PRs retain their current readiness. --draft and --ready are mutually exclusive and cannot be combined with --no-pr.
  1. Execute exactly once:

Use {message}, {topic}, and {pr_body} for the commit subject/body, topic, and PR body derived in Step 4; single-quote each value, writing an embedded single quote as '\''. Append --draft or --ready as selected above; omit both for the normal non-coding path.

bin/agent.sh save \
  --message '{message}' \
  --topic '{topic}' \
  --pr-body '{pr_body}'

The bridge owns branch safety, exact commits, push, PR create/reuse, and memory sync. Do not run manual Git commands around it or trigger a graph scan.

  1. Report only the branch, commit/push outcome, PR URL/reuse and draft/ready state, memory sync, and any failed step. Local commits remain safe if transport fails.

Rules

  • Never push directly to a protected integration/stable branch.
  • Never use destructive Git commands.
  • Never auto-close handoffs or todos during save.
  • Never publish or notify as an implied side effect.
  • Do not spend a Loom/model-routing turn on deterministic save mechanics.

Emit content-free command telemetry after the bridge returns:

bash bin/telemetry.sh emit "command" '{"command":"save"}' 2>/dev/null &

评价

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

评论

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

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

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

0 / 1000 字

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

同一仓库的技能

activity

免费

Explicit Activity card only. Use when the user names /activity or directly asks to show, open, or render the Activity dashboard/card. Never use it to answer or synthesize what the team is focused on, busy with, prioritizing, or doing; analytical organizational questions use Search/Runtime QMD.

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

egregore-labs/egregore2932026年10月17日 更新

announce

免费

Draft, preview, and explicitly send an Egregore group announcement. Use for /announce, telling the team something, or notifying everyone—not a direct message or structured handoff.

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

egregore-labs/egregore2932026年10月17日 更新

archive

免费

Capture an effective prompting or steering technique as a reusable canonical pattern. Use when a prompt chain worked especially well; use /reflect for insight about the work and /note for a private thought.

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

egregore-labs/egregore2932026年10月17日 更新

branch

免费

Create a working branch from what you are about to work on. Use for /branch, or any request to start a new branch before making changes.

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

egregore-labs/egregore2932026年10月17日 更新

checkup

免费

Run diagnostics on an Egregore environment and render a health report, repairing safe local Runtime problems when possible. Use for /checkup, a health check, or when something is broken and the root cause is unclear.

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

egregore-labs/egregore2932026年10月17日 更新

commit

免费

Stage changes and create a commit with a properly formatted message. Use for /commit, or saving work locally — not sharing it (/push) or opening a pull request (/pr).

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

egregore-labs/egregore2932026年10月17日 更新

查看 egregore-labs 的全部技能

报告此技能的问题