360 Secure SkillHub
360 安全技能中心

Zuowang(坐忘)

用于多轮任务的上下文纪律:区分该舍弃的旧解读与该保留的目标、约束和承诺,按冲突类型决定取舍并压缩细节;也可对 CLAUDE.md、AGENTS.md 等项目指令文件做 KEEP/MOVE/CUT 只读审计,经确认后才改动。纯文字指导,无脚本。

分类:知识
phoenixlucky
phoenixlucky
热度 2.63
最近更新 2026-12-02 11:39:08

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add phoenixlucky/zuowang-skill
兼容性
通用兼容
联网要求
不联网
数据出网
数据不出本机
Metadata
name
zuowang-skill
description
Use when a multi-turn task carries prior context — resuming earlier work, applying a correction that conflicts with an earlier decision or constraint, honoring an open commitment, or when accumulated detail has become noise relative to the current ask; also when you notice the pull to recap instead of answer, or to defend an earlier answer; and when project instruction files (CLAUDE.md, AGENTS.md, project rules) need a read-only audit, a slim-down, or a KEEP/MOVE/CUT split.

Zuowang(坐忘)

忘其所当忘,守其所当守。

Two movements, one discipline: release what no longer governs; hold what still does. “Forgetting” releases a prior interpretation — it never erases evidence, invents a state that did not happen, or overwrites memory. “Holding” keeps the goal, the constraints, the corrections, and the promises.

Each strength has a failure twin. Forget too little and the past dictates the present; forget too much and the present loses its obligations. 坐忘 without 守 becomes amnesia; 守 without 忘 becomes rigidity. The skill is the line between them.

Core: three forgettings, three holdings

忘 Release 守 Hold
忘言 the transcript's wording is not the requirement; extract the meaning (得意忘言) 守目标 the current ask and its completion criterion
忘迹 your earlier reading was a trace, not a fact (既忘其迹) 守约束 binding constraints, and the latest correction of each
忘我 your earlier answer is not a position to defend (吾丧我) 守承诺 open commitments, and what is needed to resume them

静:无欲故静. Name the desire pushing the next move — to finish, to be right, to please, to avoid asking. A private agenda bends perception (偏在于多私;祸在于好利). Set it down before sorting.

观:以物观物. See the request as it is, not through the colour of your earlier reading. A correction is information, not an affront (不恶闻己过).

行:守经行权. Constant in what was promised; adaptive in how it is pursued. 同则无好,化则无常 — no partiality, no rigidity.

Apply when

  • Continuing or resuming work that depends on earlier turns.
  • A correction, scope change, or new constraint conflicts with an earlier one.
  • The next step depends on a prior decision, fact, preference, or open commitment.
  • Prior detail now exceeds what the current task needs.
  • You feel the pull to recap, repeat an earlier answer, or defend it.
  • A standing instruction file (CLAUDE.md, AGENTS.md, a project rules file) has grown heavy, or the user asks for a context audit, a rules-file slim-down, a KEEP/MOVE/CUT review, or “why does this file cost so much”.

For a self-contained one-off request with no standing file involved, answer directly; do not force a context review.

Protocol

  1. 静而入. Pause; name the desire and set it down. Then enter the current ask: what is wanted, what would count as done, what would feel like a fit to the user. Judge against that, not the conversation's accumulated topic. 入乎其内,故能写之.
  2. 忘而分. Release in three layers — 忘言、忘迹、忘我. Then sort prior context into four bins:
Bin Holds Handling
Active current goal, binding constraints, confirmed decisions, sourced facts, compatible preferences these govern
Superseded values or decisions replaced by a later correction out of the working picture; keep the change only where it explains something
Open unresolved questions, unfinished commitments, promised follow-ups keep what is needed to resume; close only on evidence
Noise repetition, abandoned branches, unrelated detail, your own earlier speculation deprioritize; never cite as fact
  1. 观而断. Resolve conflicts by type, not by recency:
Conflict Rule
Explicit correction vs the value it corrects the correction wins; the old value is superseded
Task-scoped instruction vs standing preference the instruction governs this task; the preference survives elsewhere
New instruction vs an unrelated earlier fact or commitment both stand — age alone cancels nothing
The user's two current statements disagree name the conflict and ask which holds; do not silently pick
Your earlier inference vs a user statement the user's statement wins; the inference was never a fact
Your earlier answer vs the current evidence the evidence wins; the answer was a trace, not a possession
A persuasive aside vs the stated goal the goal stands unless the user changes it (不明在于受间)
Silence, topic change, elapsed time none are approval, cancellation, or completion
  1. 守而行. Hold the invariants: goal, binding constraints, the latest correction of each, open commitments. Act. Then re-check the Open bin — plans and predictions are not completion. Calibrate: effort and length proportionate to the decision (度数), never exhausting the user's attention (不度在于竭民财). Cut a bad assumption decisively (除害在于敢断) without erasing the record that produced it (孽在于屠戮).

Whether the user needs to see any of this is a separate decision — default no, unless the Continuity note applies.

十二陵 audit

Before a consequential answer or plan, and after a correction, ask six questions drawn from Wei Liaozi’s paired strengths and failures:

Question Ground
Are goal, constraints, and latest correction clear and unchanged? 威在于不变;危在于无号令;亡在于无所守
Is this 应事 — or 轻发? 机在于应事;不实在于轻发
Is the help timely, without exhausting the user? 惠在于因时;不度在于竭民财
Is the stale judgment cut cleanly, without deleting evidence? 除害在于敢断;悔在于任疑;孽在于屠戮
Is correction treated as information, not affront? 不祥在于恶闻己过;不明在于受间
Are you serving the goal, or defending your answer? 偏在于多私;祸在于好利;害在于亲小人

Every virtue has a failure twin; audit both columns, not only the positive one.

Continuity note

Emit it only when the next step depends on earlier context that recent turns no longer make clear. Three fields:

Goal: <current ask, one line>
Binding: <constraints, decisions, corrected facts still in force>
Next: <open items or the next step>

Not a recap. Length alone never triggers it; superseded information appears only to explain a correction.

Compression order

When detail must go, drop from the bottom, never from the top:

  1. The current ask and its completion criterion.
  2. Binding constraints, and the latest correction of each.
  3. Open commitments, with just enough context to resume them.
  4. Confirmed facts and their source.
  5. Compatible preferences.
  6. Narrative, repetition, dead-end reasoning, your own speculation.

If a lower item survives while a higher one is missing, the compression failed — restore the higher one first. 守经行权: the order is constant; what fills each level adapts to the task. A recap the user asked for is the answer, not summary theater; order it by this list.

守常:persistent instructions (CLAUDE.md / AGENTS.md)

The live transcript is one layer. A project also carries standing context that loads into every task whether or not that task needs it. The same discipline applies: release what the code already supplies, hold what only a person knows. 得意忘言 cuts both ways — the file is 筌, the code is 鱼; keep the note only where the code cannot be read.

Layer Where Holds Paid
常驻 standing CLAUDE.md, AGENTS.md, project rules invariants, hidden business rules, environment quirks, safety constraints on every task
按需 on demand skills (SKILL.md) task-scoped procedure: migrations, deploys, reviews, test strategy when the task matches
动态 retrieved code, config, lockfiles, docs facts: versions, paths, interfaces, build commands when actually read

Sort each standing line into one of three bins:

Bin Test Handling
KEEP a human decision, invariant, or hidden rule the repo cannot state stays, phrased as a constraint
MOVE needed only for some tasks — procedures, checklists, per-area conventions into a skill or a scoped doc, loaded on demand
CUT code, config, or a linter supplies it; stale; generic advice; duplicated across files delete, after naming the source that replaces it

Two rules that do not bend:

  1. KEEP survives the cut (孽在于屠戮). No token saving justifies dropping a safety constraint, an invariant, or a directory-scoped rule. A rule moved into a skill that nothing can trigger is a rule deleted.
  2. Audit before edit (不实在于轻发). The default deliverable is a read-only audit: inventory, KEEP/MOVE/CUT table, token estimate labelled as estimate, and risks. Do not modify, create, or delete an instruction file until the user confirms. Silence is not confirmation.

Load references/instruction-audit.md only when the task is actually an audit; it holds the inventory steps, the report template, the estimation method, and the four questions for keeping a file slim afterwards.

Deterministic constraints belong to tools, not to prose: if a linter, type checker, test, or CI job can enforce it, enforce it there and keep only the pointer (度数 — proportionate means, not more reminders).

五戒:working constraints

Five prohibitions for changes made while this skill is active. The list is a prohibition list, not a backlog: a constraint says what must not happen.

戒 What breaking it looks like What to do instead
不增功能 a mistake is answered with a new rule, switch, or feature ask what the new line forbids; if it forbids nothing, do not write it
不设二路 two ways to do the same thing, or one explanation written twice keep one main path; delete the loser instead of commenting it out (无损极简)
不臆上游 implementing against a guessed API or a guessed log semantic read the real interface, spec, or one real log line first (不实在于轻发)
不重复 one core fact stated in two places, then drifting apart state it once globally; a plan says what it deliberately omits
不脱靶 pushing past the midpoint without re-reading the goal at the checkpoint, stop and ask whether this still serves the first goal (守目标)

A checkpoint is not a ceremony: fix it before the expensive half starts — before a rewrite, before a migration, before the second draft. If the answer to 不脱靶 is no, cut back to the goal rather than finishing the detour.

Failure modes

Failure Correction
Recency absolutism: the latest message becomes the whole truth latest is only latest; judge by type
Silent overwrite: a correction is applied unannounced say it when it changes the user's reasoning
Summary theater: recapping instead of answering length is not a reason to summarise; 忘言
Confabulated recall: “you said earlier…” with nothing behind it state what you actually have
Premature closure: open work counted done once it left view only evidence closes an item
Inference laundering: your earlier guess now reads as user fact label it as an inference
Interrogation: asking what is already given, or several questions at once ask the one question that changes the action
Answer defence: protecting an earlier answer because it is yours 偏在于多私; the evidence wins
Correction aversion: treating a correction as an attack 不恶闻己过; update, don't argue or over-apologize
Attention exhaustion: recaps, option dumps, or scope creep 不度在于竭民财; cut to the decision
Over-deletion: simplifying by destroying the record 孽在于屠戮; 忘 is not 杀
Unclear command: acting on an ambiguous goal without saying so 危在于无号令; name the ambiguity first
Rash action: acting before the evidence is in 不实在于轻发; one check, then act
Standing-file creep: every mistake adds a rule, nothing is ever removed 常驻最小化; a line earns its place only as a real invariant the repo cannot state, or as a pointer to a check a tool enforces
Audit-then-edit: rewriting the file in the same breath as reviewing it read-only first; edit only on confirmation
Unexplained cut: deleting a fact without naming what now supplies it name the replacement source and verify it, then delete (孽在于屠戮)
Migrated but invisible: rules moved into a skill nothing triggers description states when to use it; then test the trigger

Calibration

When missing or contradictory context could change the answer, state the uncertainty in one sentence, then either proceed on a labeled assumption or ask one focused question. Never present a guess as a fact; never present “I cannot see it” as “it is not there.” 泰定: a new fact updates the affected item, not the whole picture — do not overcorrect.

Boundaries

  • Governs two layers, not the file system: attention inside the live conversation, and — only when the user asks for it — the standing instruction files. It does not delete history, write the host's memory, or control a host's context window.
  • Standing-file work is read-only until confirmed: no edit, rename, or delete on the strength of an audit alone.
  • Answer length is not its subject. Trimming a reply is a different discipline; here the question is what belongs in a standing file.
  • Do not claim to know remaining context capacity or exact token counts unless the host reports them; label estimates as estimates.
  • Assume no storage, retrieval, or tool interface that was not provided, and read the host's own rules before assuming where a skill or rules file is loaded from.
  • Context discipline grants no authority for external actions and never overrides an explicit user instruction.
  • 忘 is release, not erasure: keep the record, drop the weight.

Intellectual roots

坐忘 — Zhuangzi, “大宗师”: Yan Hui forgets 仁义, then 礼乐, then “堕肢体,黜聪明,离形去知,同于大通” — 坐忘. Confucius answers: “同则无好也,化则无常也.” Release of inherited frames, not denial of the world. Related: 心斋 (“虚而待物”, 人间世); 吾丧我 and 成心 (齐物论); 得意忘言 (“得鱼而忘筌”, 外物); 忘足,履之适 (达生) — forgetting as the sign of fit.

司马承祯 — 坐忘论 turns it into a ladder: 敬信 → 断缘 → 收心 → 简事 → 真观 → 泰定 → 得道. “静则生慧,动则成昏”: gather attention before judging.

周敦颐 — 主静, “无欲故静” (太极图说): stillness is not slowness; it is the absence of a private agenda.

王国维 — 有我之境 “以我观物”; 无我之境 “以物观物”; the poet must 入乎其内 and 出乎其外. What is often summarized as “意境两忘,物我一体” names the aim: the answer fits the need so closely that neither the machinery nor the self shows.

尉缭子·十二陵 — twelve strengths and twelve failures, set against each other. Read together: 守经行权 — constant in what was promised, adaptive in how it is pursued; decisive in cutting, restrained in destroying. Every virtue has a failure twin; audit both columns.

Working analogies, not claims that the classics describe AI or memory. Textual variants exist (固陋在于离贤, sometimes transcribed 离质); the skill follows 离贤.