copy-before-you-do
/copy-before-you-do
Use CBD (Copy Before You Do) before meaningful execution to lock the user's actual goal, recover local reality, guide first-use adaptation, search and open traceable external references, reuse existing experience, use bounded Friends for real capability gaps, execute and verify, distill what changed, preserve future-return signals, and propose quiet evidence-bearing automations when later facts may change action. Trigger for explicit CBD, research, comparison, architecture, implementation-route, product-direction, tool-selection, complex, risky, unfamiliar, expensive, irreversible, repeated, e
- Author
- Archbishopovo-ux ↗
- Repository
- Copy-Before-You-Do ↗
- Licence
- MIT
- Last repository change
- 05.08.2026
Assessment and security
- Files in this package
- 35
- Scripts
- 2
- HTML comments
- 0
- URLs in SKILL.md
- 1
No signals detected. Repository changed on 05.08.2026, without references to retired models or APIs.
MIT, open: use and modify while retaining author attribution.
- 2 scripts in this package. Review them before installing, as Claude may execute them.
Scripts: install-trae-cn.ps1, install.ps1
What it does and when to use it
Use CBD (Copy Before You Do) before meaningful execution to lock the user's actual goal, recover local reality, guide first-use adaptation, search and open traceable external references, reuse existing experience, use bounded Friends for real capability gaps, execute and verify, distill what changed, preserve future-return signals, and propose quiet evidence-bearing automations when later facts may change action. Trigger for explicit CBD, research, comparison, architecture, implementation-route, product-direction, tool-selection, complex, risky, unfamiliar, expensive, irreversible, repeated, e
Original author description
Use CBD (Copy Before You Do) before meaningful execution to lock the user's actual goal, recover local reality, guide first-use adaptation, search and open traceable external references, reuse existing experience, use bounded Friends for real capability gaps, execute and verify, distill what changed, preserve future-return signals, and propose quiet evidence-bearing automations when later facts may change action. Trigger for explicit CBD, research, comparison, architecture, implementation-route, product-direction, tool-selection, complex, risky, unfamiliar, expensive, irreversible, repeated, e
How it works
- Current Scope
- Core
- Base Is a Seed, Not a Uniform
- Auto Trigger
- Mandatory First-Use Adaptation
- CBD Friends
- Proactive Automation
- Phase -1: Mandatory Intent Gate
- Phase 0: Host and Local Reality
- Two Logical Local Profiles
SKILL.md preview
--- name: copy-before-you-do description: >- Use CBD (Copy Before You Do) before meaningful execution to lock the user's actual goal, recover local reality, guide first-use adaptation, search and open traceable external references, reuse existing experience, use bounded Friends for real capability gaps, execute and verify, distill what changed, preserve future-return signals, and propose quiet evidence-bearing automations when later facts may change action. Trigger for explicit CBD, research, comparison, architecture, implementation-route, product-direction, tool-selection, complex, risky, unfamiliar, expensive, irreversible, repeated, expiring, stage-bound, or cross-module work, and for phrases such as 先搜再动手, 有人做过吗, 先调研, 抄方案, 再 CBD 一下, 轻 CBD, research first, copy before, existing solutions, and ground before build. license: MIT compatibility: >- Compatible with Agent Skills hosts. Install into the host's native Skills directory; see INSTALL.md for current Claude Code, Codex, Cursor, Trae, and Trae CN locations. metadata: version: "0.6.5" repository: "https://github.com/Archbishopovo-ux/Copy-Before-You-Do" --- # Copy Before You Do 0.6.5 > CBD。Copy Before You Do。翻译成人话:先抄,再造。 ## Current Scope `0.6.5` adds proactive automation. CBD may preserve a future-return signal during real work, re-evaluate it at distillation, and propose a quiet task only when future evidence is expected to exist, will be accessible at runtime, and may change action. - do not interrupt current work merely because a future condition seems close - preserve a lightweight Automation Root instead - perform one compact Automation Root Check at meaningful closeout boundaries - create durable tasks only with user authorization - remain quiet when no meaningful delta exists - expire tasks when the decision, project, or evidence route ends - reuse the host's native task system; do not build a scheduler or workflow engine Detailed rules live in `CBD-AUTOMATIONS.md`. The design rationale lives in `design-intent/0.6.5.md`. ## Core Before asking whether someone has already done it, first ask: > **What the fuck are you actually trying to do?** CBD is a local, empirical learning loop: ```text intent lock → local reality → traceable existing experience → locally adapted decision → execution → verification → explicit distillation → future-return check → profile writeback or authorized automation → target-drift check → better next reuse ``` CBD does not guarantee correctness. A complete run guarantees only that external Copy actually occurred and can be audited, or that incomplete Copy was reported honestly. ## Base Is a Seed, Not a Uniform The bundled version is a minimum coherent loop. Users and hosts may rename, merge, split, replace, or absorb its artifacts into native systems. For complex work, three evidence roles must remain recoverable: 1. reference map 2. method breakdown and reuse decision 3. execution contract The invariant is: ```text know what is actually being done → recover local reality → find traceable existing references → adapt them to local reality → execute and verify → distill what changed → know whether future evidence deserves a return → make the next run inherit the result ``` ## Auto Trigger Run CBD when any of these are true: - the user explicitly asks for CBD, research, comparison, or existing solutions - the task is complex, high-risk, expensive, irreversible, or cross-module - architecture, implementation route, product direction, or tool selection is involved - the domain or codebase is unfamiliar - a mature existing solution probably exists - a similar task failed before - a previously successful method fails under current conditions - the user describes a costly check that repeats, arrives too late, may expire, or depends on future evidence Do not force a full run for a tiny, reversible, fully specified task. ## Mandatory First-Use Adaptation A newly installed CBD is only installed, not locally adapted, until one real first-use loop has completed. The Agent must actively guide that first use without beginning with a questionnaire or large menu. Use the smallest route that produces an observable result: 1. current real task 2. existing MCPs, Skills, connectors, files, memory, and workflows 3. search plus knowledge comparison and authorized writeback 4. CBD the Agent setup itself Prefer read-only and reversible actions. Installing tools, sending messages, changing external systems, or creating durable automation requires normal authorization. Preserve a lightweight record: ```yaml first_use_object: inferred_real_intent: observed_user_corrections: active_triggers: interaction_and_artifact_preference: permission_boundaries: next_run_must_change: unresolved: ``` Adaptation is complete only after real use, observable output, correction or acceptance, persistent writeback, and next-run inheritance. ## CBD Friends CBD Friends are external capabilities that complement CBD without becoming CBD. Prefer MCP when the missing piece is a bounded capability such as search, memory, current documentation, repository access, or browser verification. ```text inspect host capabilities → identify one material gap → reuse an equivalent already available → otherwise recommend one fitting original project → obtain authorization for installation or durable access → use it only as far as needed → return control to CBD ``` Do not recursively search for Friends, recommend a stack, vendor third-party code, rename original projects, or imply ownership. See `CBD-FRIENDS.md` for reviewed routes, sources, costs, and boundaries. ## Proactive Automation Automation is not the ability to schedule anything. It is the ability to recognize that later evidence may change a decision and to return at a useful time. CBD-native examples are: - verified frontier assimilation - internal forge - reality recheck User-grown automations emerge from normal work, especially repeated late checks, waiting for future evidence, expiring conclusions, and natural project-stage reviews. ### Automation Root When a relevant signal appears during current work, preserve a root and continue: ```yaml automation_root: subject: signal: future_evidence: evidence_access: revisit_when: decision_it_may_change: do_not_interrupt_current_work: true ``` A root is not a task. It must survive distillation. ### Mandatory Automation Root Check At Phase 8 closeout, internally check: ```yaml automation_root_check: repeated_or_future_signal: future_evidence_will_exist: evidence_is_accessible: result_may_change_action: safe_revisit_time_exists: existing_task_already_covers_it: durable_task_requires_authorization: ``` Decision route: ```text no future evidence → discard future evidence is inaccessible → reject the blind task or identify one real capability gap result cannot change action → discard existing task already covers it → reuse or update that task useful later but wrong to interrupt now → preserve one root purpose, evidence, access, timing, and value are clear → propose one candidate task for authorization ``` Ordinary closeout defaults to at most one new root. Do not turn every repeated behavior or unresolved question into automation. ### Candidate Task Contract ```yaml task: why_it_is_worth_creating: what_it_checks: evidence_source: when_it_runs: notify_when: remain_quiet_when: decision_it_may_change: stop_or_expire_when: ``` Choose the lowest useful frequency. No meaningful delta means no notification. Creating, modifying, authenticating, or durably storing a task requires authorization. Monitoring permission does not grant permission to act on what was found. The future runtime must be able to access its evidence. Otherwise create a manual checkpoint, fill one real capability gap, or reject the task. Full rules and examples live in `CBD-AUTOMATIONS.md` and `examples/automation-roots.md`. ## Phase -1: Mandatory Intent Gate For every meaningful CBD run, determine what the user is actually trying to do before searching or acting. Infer from current context, profiles, project truth, and previous results. Ask only for missing decision-changing information. Preserve a compact Task Lock: ```yaml actual_goal: local_conditions: success_means: not_optimizing_for: assumptions_to_verify: ``` Classify artifact weight from local risk, reversibility, scope, unfamiliarity, cost, cross-module impact, duration, collaboration, and audit needs. Do not impose one universal complexity score. ## Phase 0: Host and Local Reality Inspect native persistent instructions, Skills, tools, workflows, project memory, decisions, incidents, permissions, profiles, and actual completed-task behavior. Answer: 1. Which CBD-like behaviors already exist? 2. Which parts are covered by the host? 3. Where does the loop break? 4. Which guards are still needed? 5. Where should raw evidence and distilled knowledge live? 6. Does recovered reality agree with the Task Lock? 7. Which capability gaps are real? 8. Which automation and evidence routes already exist? Do not create parallel `.cbd/` or automation systems by default. ## Two Logical Local Profiles ### Global profile Stores compact cross-project user, host, method, permission, guard, and reusable CBD knowledge. ### Project profile Stores current goal, success definition, active decisions, rejected routes, constraints, conditions, unresolved anomalies, Automation Roots, and pointers to detailed evidence. Profiles are short current-state layers, not transcripts or append-only diaries. Preferred startup order: ```text global profile → project profile → current project truth and task files → current request and recent results → raw artifacts only when traceability is needed ``` ## Adaptive Guards Keep only guards supported by observed host behavior. | Guard | Keep enabled when the host tends to... | |---|---| | Intent guard | search or execute before understanding the goal | | Profile guard | ignore available local context | | Trigger guard | forget CBD unless the user names it | | First-use guard | finish installation without a real adaptation loop | | Coverage guard | skip independent references or treat local context as Copy | | Friend guard | rebuild a capability or recommend a stack without a real gap | | Decision guard | collect references without changing or explaining the choice | | Execution gate | start before constraints and acceptance are clear | | Verification guard | treat plausibility as success | | Distillation guard | archive artifacts without refining reusable knowledge | | Automation guard | finish future-bearing work without checking for one useful root | | Writeback guard | finish without updating locations later runs read | | Drift guard | continue after the target changed | | Stop guard | recurse or monitor after the decision is stable | A missed behavior restores that guard, not the whole ceremony. ## Runtime Loop ### 1. Lock intent Preserve the Task Lock. ### 2. Recover local reality Read global and project profiles, then current project truth. ### 3. Ground locally, then perform Copy Inspect current implementation, tests, decisions, incidents, previous runs, and distilled knowledge. Local-first does not mean local-only. For complete CBD, search and open real external references when external facts, solutions, practices, products, tools, methods, or prior implementations matter. Prefer maintained primary sources, independent cases, failures, counterexamples, and adjacent fields when useful. A search snippet, remembered URL, generated citation, or unvisited link is not an accessed reference. ### Mandatory Copy disclosure Before declaring a complete run, disclose actual opened references: ```yaml title: url: access_verified: yes used_for: reuse: Adopt / Extend / Compose / Rekreate / Reject / Context only ``` If no valid external reference is found, disclose attempted routes and state: `Copy incomplete: local-only decision, not a complete CBD run` ### 4. Decide reuse ```text Adopt → Extend → Compose → Rekreate → Build ``` Reject technically strong references that conflict with local reality. A Friend recommendation is also a reuse decision. ### 5. Freeze execution boundary Preserve what to do, what not to do, constraints, acceptance, verification, and unresolved assumptions. Complex work keeps the full three-piece evidence set. ### 6. Execute and verify Feed a grounded decision into the native workflow and verify against tests, user acceptance, observed output, business results, or another domain-appropriate check. Friends and automations receive no broader authority than the underlying task. ### 7. Preserve raw evidence Keep references, method decision, contract, outcome, incidents, verification, and rerun inputs in native evidence locations. ### 8. Distill explicitly At a meaningful task or stage boundary compare: ```text previous distilled knowledge + Task Lock + references and decision + execution result + user feedback ``` Produce: ```yaml retain: promote: narrow: merge: supersede: reject: stale: unresolved: ``` Then perform the Mandatory Automation Root Check. Distillation is an update operation, not an append-only diary. ### 9. Write back or create an authorized task ```text cross-project cognition → global profile project decision and active solution → project profile raw process → native archive approved future-return work → host-native task system ``` Write only meaningful deltas. Preserve rejected roots only when their rejection teaches a reusable boundary. Do not create a durable automation without authorization. ### 10. Check target drift Before another pass, ask whether the target is still the same. Reopen intent when the user corrects the problem, success conditions change, execution disproves the Task Lock, profiles conflict, or repeated passes fail without progress. ## Artifact Weight Light work may use a compact inline or native trace. Complex work must preserve all three evidence roles. Storage shape is adaptable; evidence obligations are not. ## Stop Exit Stop research and execute when: - the user says `开干` - new references no longer change action - two consecutive passes do not change the core decision - remaining risks are low, reversible, or accepted - more search costs more than expected improvement Stop or expire an automation when: - the project or decision ended - the watched condition can no longer occur - another task covers the same purpose - the evidence route disappeared - repeated runs do not plausibly affect action - the user disables it For recursion-prone hosts, default to no more than three CBD passes. ## Install or Adapt CBD 0.6.5 1. inspect host and local reality 2. identify global and project profile locations 3. identify evidence, verification, and writeback locations 4. enable only unsupported guards 5. add a minimal persistent trigger when authorized 6. actively guide one real first-use adaptation 7. preserve the adaptation record 8. inspect existing capabilities before recommending a Friend 9. inspect the host's native automation support and future evidence access 10. verify the next run inherits the adaptation The portable package includes `SKILL.md`, `CBD-FRIENDS.md`, `CBD-AUTOMATIONS.md`, and the existing profile, reference, method, and contract templates. Installing CBD does not install Friends or create automations. ## Human Commands - **先带我跑一次 CBD**: run the lightest real first-use adaptation - **轻 CBD 一下**: recover intent and existing experience without full artifacts - **再 CBD 一下**: find the weak layer, missing route, counterexample, or failed assumption - **CBD 一下这个决定**: audit intent, local fit, evidence, and decision - **给 CBD 找个朋友**: identify one material capability gap and one fitting original project - **给这件事留个根**: preserve a future-return signal for distillation - **开干**: freeze scope and execute - **把这次写回 CBD**: force or recover distillation and writeback - **CBD 一下你自己**: inspect host behavior and adjust guards - **去读本地档案**: reread profiles - **目标变了**: reopen intent ## Boundaries CBD does not guarantee source credibility, factual correctness, optimal decisions, perfect local understanding, first-run executability, scheduler availability, runtime evidence access, or automation value. It never silently installs Friends, creates durable tasks, persists credentials, or performs future external mutations. It guarantees disciplined, traceable questions: > **What are we actually doing, what real references did we open, what fit locally, > which capability gap was real, what happened, what was distilled, which future > evidence deserves a return, and what should the next run inherit?**
Files in this package (35)
- .gitignore 1 KB
- CBD-AUTOMATIONS.md 10 KB
- CBD-FRIENDS.md 11 KB
- CONTRIBUTING.md 3 KB
- CONTRIBUTING.zh-CN.md 3 KB
- INSTALL.md 6 KB
- INSTALL.zh-CN.md 6 KB
- LICENSE 1 KB
- README.en.md 11 KB
- README.md 10 KB
- SKILL.md 17 KB
- contract-template.md 1 KB
- global-local-profile-template.md 3 KB
- host-adaptation-template.md 10 KB
- install-trae-cn.ps1 1 KB
- install.ps1 3 KB
- method-breakdown-template.md 1 KB
- project-local-profile-template.md 3 KB
- reference-map-template.md 1 KB
- design-intent/0.6.3.md 6 KB
- design-intent/0.6.4.md 7 KB
- design-intent/0.6.5.md 13 KB
- design-intent/README.md 1 KB
- examples/automation-roots.md 6 KB
- examples/cbd-origin-case-study.en.md 3 KB
- examples/cbd-origin-case-study.md 3 KB
- examples/field-precedents-2026-08.md 6 KB
- examples/field-precedents-2026-08.zh-CN.md 5 KB
- examples/first-use-adaptation.md 3 KB
- examples/game-dialogue-system-research-case.md 1 KB
- examples/host-adaptation-four-pass.md 3 KB
- examples/landing-page-research-case.md 2 KB
- examples/model-sensitivity-three-pass.md 3 KB
- examples/skill-design-research-case.md 1 KB
- examples/writing-style-research-case.md 1 KB
Versions
The database has no other skills named copy-before-you-do.
Database snapshot: 13.11.2026 · package version bda36bd34bdb (SHA-256 digest of the entire package)
Downloads in the last 30 days: 0 · ranking
Similar skills
No similar skills in the database.