agent-concepts 0.0.0-stage → 0.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +773 -2
- package/concepts/bc-brainstorming/body/SKILL.md +43 -0
- package/concepts/bc-code-review/body/SKILL.md +120 -0
- package/concepts/bc-codebase-design/body/SKILL.md +54 -0
- package/concepts/bc-codebase-docs/body/SKILL.md +150 -0
- package/concepts/bc-council-audit-security/body/SKILL.md +72 -0
- package/concepts/bc-council-chain/body/SKILL.md +71 -0
- package/concepts/bc-council-challenge-plan/body/SKILL.md +78 -0
- package/concepts/bc-council-find-bugs/body/SKILL.md +70 -0
- package/concepts/bc-council-improve-architecture/body/SKILL.md +52 -0
- package/concepts/bc-council-mode/body/SKILL.md +56 -0
- package/concepts/bc-council-mode/body/examples/agents/README.md +11 -0
- package/concepts/bc-council-mode/body/examples/agents/council-change.md +14 -0
- package/concepts/bc-council-mode/body/examples/agents/council-compat.md +14 -0
- package/concepts/bc-council-mode/body/examples/agents/council-risk.md +14 -0
- package/concepts/bc-council-mode/body/references/pass-contracts.md +133 -0
- package/concepts/bc-delegate-investigation/body/SKILL.md +119 -0
- package/concepts/bc-delegate-investigation/body/examples/pi-settings-snippet.json +8 -0
- package/concepts/bc-delegate-investigation/body/pi.md +170 -0
- package/concepts/bc-design/body/SKILL.md +49 -0
- package/concepts/bc-design/body/design-framework.md +39 -0
- package/concepts/bc-design/body/existing-app.md +9 -0
- package/concepts/bc-design/body/new-work.md +22 -0
- package/concepts/bc-design/body/principles.md +34 -0
- package/concepts/bc-design/body/surfaces.md +13 -0
- package/concepts/bc-diagnosing-bugs/body/SKILL.md +83 -0
- package/concepts/bc-dispatching-parallel-agents/body/SKILL.md +63 -0
- package/concepts/bc-domain-modeling/body/SKILL.md +40 -0
- package/concepts/bc-executing-plans/body/SKILL.md +50 -0
- package/concepts/bc-explain-visually/body/SKILL.md +167 -0
- package/concepts/bc-find-bugs/body/SKILL.md +90 -0
- package/concepts/bc-finishing-development-branch/body/SKILL.md +73 -0
- package/concepts/bc-grilling/body/SKILL.md +22 -0
- package/concepts/bc-handoff/body/SKILL.md +104 -0
- package/concepts/bc-handoff/body/pickup.md +107 -0
- package/concepts/bc-handoff/body/writing.md +217 -0
- package/concepts/bc-improve-codebase-architecture/body/SKILL.md +101 -0
- package/concepts/bc-json-canvas/body/SKILL.md +40 -0
- package/concepts/bc-json-canvas/body/references/EXAMPLES.md +71 -0
- package/concepts/bc-json-canvas/body/references/SPEC.md +55 -0
- package/concepts/bc-json-canvas/body/references/VALIDATION.md +26 -0
- package/concepts/bc-minimal-solution-ladder/body/SKILL.md +120 -0
- package/concepts/bc-obsidian-bases/body/SKILL.md +59 -0
- package/concepts/bc-obsidian-bases/body/references/EXAMPLES.md +80 -0
- package/concepts/bc-obsidian-bases/body/references/FUNCTIONS.md +49 -0
- package/concepts/bc-obsidian-bases/body/references/SYNTAX.md +82 -0
- package/concepts/bc-obsidian-bases/body/references/TROUBLESHOOTING.md +41 -0
- package/concepts/bc-obsidian-markdown/body/SKILL.md +47 -0
- package/concepts/bc-obsidian-markdown/body/references/CALLOUTS.md +40 -0
- package/concepts/bc-obsidian-markdown/body/references/EMBEDS.md +35 -0
- package/concepts/bc-obsidian-markdown/body/references/PROPERTIES.md +37 -0
- package/concepts/bc-optimize-code/body/SKILL.md +41 -0
- package/concepts/bc-performance-guardrails/body/SKILL.md +53 -0
- package/concepts/bc-performance-guardrails/body/measuring.md +29 -0
- package/concepts/bc-performance-guardrails/body/targets.md +20 -0
- package/concepts/bc-pipeline-to-done/body/SKILL.md +205 -0
- package/concepts/bc-pipeline-to-done/body/agents/bc-drain-auditor.md +19 -0
- package/concepts/bc-pipeline-to-done/body/agents/bc-drain-reviewer.md +19 -0
- package/concepts/bc-pipeline-to-done/body/agents/bc-drain-worker.md +19 -0
- package/concepts/bc-pipeline-to-done/body/execute-issue.md +71 -0
- package/concepts/bc-pipeline-to-done/body/recovery-bundle.md +79 -0
- package/concepts/bc-pipeline-to-done/body/review-contract.md +105 -0
- package/concepts/bc-pipeline-to-done/body/roles.md +13 -0
- package/concepts/bc-pipeline-to-done/body/scripts/publish-check.py +172 -0
- package/concepts/bc-pipeline-to-done/body/source-issues.md +86 -0
- package/concepts/bc-pipeline-to-done/body/source-work-items.md +76 -0
- package/concepts/bc-plain-language/body/SKILL.md +134 -0
- package/concepts/bc-plan-slicing/body/SKILL.md +56 -0
- package/concepts/bc-plan-to-pipeline/body/SKILL.md +89 -0
- package/concepts/bc-prd-drafting/body/SKILL.md +43 -0
- package/concepts/bc-prompting-agents/body/SKILL.md +278 -0
- package/concepts/bc-prototype/body/SKILL.md +40 -0
- package/concepts/bc-qmd/body/SKILL.md +64 -0
- package/concepts/bc-research/body/SKILL.md +26 -0
- package/concepts/bc-security-audit/body/AI-AND-LLM.md +25 -0
- package/concepts/bc-security-audit/body/ATTACK-CLASSES.md +35 -0
- package/concepts/bc-security-audit/body/DESKTOP-MOBILE-AND-LOCAL-IPC.md +28 -0
- package/concepts/bc-security-audit/body/RECONNAISSANCE.md +49 -0
- package/concepts/bc-security-audit/body/SKILL.md +117 -0
- package/concepts/bc-security-audit/body/SUPPLY-CHAIN-AND-RELEASE.md +28 -0
- package/concepts/bc-security-audit/body/VALIDATION-AND-REPORTING.md +124 -0
- package/concepts/bc-security-audit/body/WEB-PROTOCOL-AND-AUTH.md +27 -0
- package/concepts/bc-security-audit/body/validate_audit.py +151 -0
- package/concepts/bc-self-improve/body/SKILL.md +104 -0
- package/concepts/bc-seo/body/CITATIONS.md +23 -0
- package/concepts/bc-seo/body/IMAGE-SEO.md +350 -0
- package/concepts/bc-seo/body/SKILL.md +453 -0
- package/concepts/bc-setup-project/body/SKILL.md +252 -0
- package/concepts/bc-setup-project/body/scaffold.py +2751 -0
- package/concepts/bc-setup-project/body/starter-items.md +157 -0
- package/concepts/bc-setup-project/body/work-data.md +114 -0
- package/concepts/bc-setup-project/body/work_index.py +626 -0
- package/concepts/bc-setup-project/body/work_spent.py +220 -0
- package/concepts/bc-subagent-driven-development/body/SKILL.md +61 -0
- package/concepts/bc-tdd/body/SKILL.md +184 -0
- package/concepts/bc-tdd/body/formal.md +77 -0
- package/concepts/bc-tdd/body/mocking.md +49 -0
- package/concepts/bc-tdd/body/properties.md +59 -0
- package/concepts/bc-tdd/body/refactoring.md +12 -0
- package/concepts/bc-tdd/body/scripts/confirm-red.py +136 -0
- package/concepts/bc-tdd/body/tests.md +59 -0
- package/concepts/bc-teach/body/GLOSSARY-FORMAT.md +36 -0
- package/concepts/bc-teach/body/LEARNING-RECORD-FORMAT.md +60 -0
- package/concepts/bc-teach/body/MISSION-FORMAT.md +34 -0
- package/concepts/bc-teach/body/RESOURCES-FORMAT.md +53 -0
- package/concepts/bc-teach/body/REVIEW-FORMAT.md +48 -0
- package/concepts/bc-teach/body/SKILL.md +281 -0
- package/concepts/bc-teach/body/WIKI-FORMAT.md +58 -0
- package/concepts/bc-teach/body/scripts/due.py +65 -0
- package/concepts/bc-to-spec/body/SKILL.md +21 -0
- package/concepts/bc-to-tickets/body/SKILL.md +21 -0
- package/concepts/bc-triage/body/AGENT-BRIEF.md +38 -0
- package/concepts/bc-triage/body/OUT-OF-SCOPE.md +51 -0
- package/concepts/bc-triage/body/SKILL.md +81 -0
- package/concepts/bc-unslop/body/SKILL.md +269 -0
- package/concepts/bc-using-git-worktrees/body/SKILL.md +91 -0
- package/concepts/bc-wiki-maintain/body/SKILL.md +361 -0
- package/concepts/bc-wiki-maintain/body/runner/README.md +552 -0
- package/concepts/bc-wiki-maintain/body/runner/bc-wiki-lint.service +24 -0
- package/concepts/bc-wiki-maintain/body/runner/bc-wiki-lint.timer +15 -0
- package/concepts/bc-wiki-maintain/body/runner/bc-wiki-maintain-all.service +29 -0
- package/concepts/bc-wiki-maintain/body/runner/bc-wiki-maintain-all.timer +16 -0
- package/concepts/bc-wiki-maintain/body/runner/bc-wiki-maintain.service +28 -0
- package/concepts/bc-wiki-maintain/body/runner/bc-wiki-maintain.timer +12 -0
- package/concepts/bc-wiki-maintain/body/runner/bc-wiki-notify@.service +15 -0
- package/concepts/bc-wiki-maintain/body/runner/notify-failure.sh +92 -0
- package/concepts/bc-wiki-maintain/body/runner/run-lint.sh +69 -0
- package/concepts/bc-wiki-maintain/body/runner/run-promotion-all.sh +103 -0
- package/concepts/bc-wiki-maintain/body/runner/run-promotion.sh +270 -0
- package/concepts/bc-wiki-maintain/body/wiki_lint.py +958 -0
- package/concepts/bc-wiki-maintain/body/wiki_search.py +206 -0
- package/concepts/bc-work-sync/body/PLAN.md +46 -0
- package/concepts/bc-work-sync/body/SKILL.md +71 -0
- package/concepts/bc-writing-plans/body/SKILL.md +79 -0
- package/package.json +130 -4
- package/packages/agent-kernel-pi/AGENT-KERNEL.md +109 -0
- package/packages/agent-kernel-pi/index.js +8 -0
- package/packages/agent-kernel-pi/package.json +12 -0
|
@@ -0,0 +1,269 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: bc-unslop
|
|
3
|
+
description: >
|
|
4
|
+
Remove the tells that make human-facing text read as machine-generated,
|
|
5
|
+
and put specifics back in their place. Use for docs, READMEs,
|
|
6
|
+
announcements, emails, blog and marketing copy, research writeups, and
|
|
7
|
+
shipped artifacts like commit messages and PR bodies. Triggers: unslop,
|
|
8
|
+
AI slop, sounds like AI, reads like ChatGPT, de-AI this, AI tells, make
|
|
9
|
+
it sound human, remove the AI voice. Not for chat replies, code, or
|
|
10
|
+
agent-facing instructions.
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
# Unslop
|
|
14
|
+
|
|
15
|
+
## What is actually wrong
|
|
16
|
+
|
|
17
|
+
LLM prose regresses to the mean. Specific, unusual, checkable facts get
|
|
18
|
+
replaced by generic, positive, statistically common ones: "inventor of
|
|
19
|
+
the first train-coupling device" becomes "a revolutionary titan of
|
|
20
|
+
industry". Every tell below is a symptom of that one movement, not the
|
|
21
|
+
disease.
|
|
22
|
+
|
|
23
|
+
**A pass that removes tells without adding specifics has failed.** It has
|
|
24
|
+
made vague content harder to detect, which is worse than leaving it
|
|
25
|
+
obviously vague. Why: the reader's real complaint is that the text
|
|
26
|
+
circles a point without landing on it. Deleting "vibrant" does not make
|
|
27
|
+
the sentence say anything.
|
|
28
|
+
|
|
29
|
+
So the test for every edit: does the sentence now carry a fact, a number,
|
|
30
|
+
a name, a mechanism, or an instruction that it did not carry before? If
|
|
31
|
+
you cannot restate it as one of those, cut the sentence instead of
|
|
32
|
+
polishing it.
|
|
33
|
+
|
|
34
|
+
## When this applies
|
|
35
|
+
|
|
36
|
+
Human-facing text that ships: docs, READMEs, announcements, emails, blog
|
|
37
|
+
and marketing copy, SEO pages, research writeups, changelogs, commit
|
|
38
|
+
messages, PR and issue bodies.
|
|
39
|
+
|
|
40
|
+
**Not chat replies** (`agent-kernel` § Final response carries a thin always-on
|
|
41
|
+
clause for those, because a model-invoked skill cannot fire on every turn),
|
|
42
|
+
**not code**, and **not agent-facing instructions** — skill bodies,
|
|
43
|
+
`AGENTS.md`, kernels, gates. Agent instructions go to `bc-prompting-agents`.
|
|
44
|
+
Why: those documents deliberately use bold lead-ins, parallel structure, and repeated
|
|
45
|
+
why-clauses, and every one of those reads as a tell. Unslopping them
|
|
46
|
+
strips the reasons a capable agent needs and leaves bare imperatives.
|
|
47
|
+
See **Never**, below: this one holds even when the user insists.
|
|
48
|
+
|
|
49
|
+
Leave code, commands, logs, diffs, quoted file contents, Mermaid fences, ASCII
|
|
50
|
+
trees, and shape-diffs untouched.
|
|
51
|
+
|
|
52
|
+
## Modes
|
|
53
|
+
|
|
54
|
+
**Your own draft: fix it silently before shipping.** No report, no
|
|
55
|
+
permission request. Editing your own unshipped text is not a change to
|
|
56
|
+
anything the user owns.
|
|
57
|
+
|
|
58
|
+
**Text you did not write: report first, rewrite only when asked.** Why:
|
|
59
|
+
someone's prose is their voice, and an unsolicited rewrite is a meaning
|
|
60
|
+
change they never authorized. Report as a short list of located tells,
|
|
61
|
+
worst first.
|
|
62
|
+
|
|
63
|
+
## No single tell is evidence
|
|
64
|
+
|
|
65
|
+
One "landscape", one em dash, one triad proves nothing — humans write all
|
|
66
|
+
of them, and the models learned them from humans. What reads as machine
|
|
67
|
+
authorship is **accumulation**: the same handful of moves repeating across
|
|
68
|
+
paragraphs. Before calling text sloppy, name at least two co-occurring
|
|
69
|
+
patterns from different sections below.
|
|
70
|
+
|
|
71
|
+
Humans are near chance at this judgment. Heavy LLM users reach roughly
|
|
72
|
+
90%, which still means one false call in ten.
|
|
73
|
+
|
|
74
|
+
## Constructions (the durable class)
|
|
75
|
+
|
|
76
|
+
These come from how the model plans a sentence rather than from a token
|
|
77
|
+
preference, so they persist across model generations. When a construction
|
|
78
|
+
rule and a vocabulary rule conflict, the construction wins.
|
|
79
|
+
|
|
80
|
+
1. **Negative parallelism.** "Not just X, but Y", "not only X but also Y",
|
|
81
|
+
"it's not X, it's Y", "X rather than Y", and the redundant triple
|
|
82
|
+
("not partially, not ambiguously, but definitively"). The tell is
|
|
83
|
+
restating one idea as a fake correction. State the point directly.
|
|
84
|
+
The legitimate form draws a real distinction ("the question is not
|
|
85
|
+
whether, but when") and stays.
|
|
86
|
+
2. **Superficial -ing tail.** A participle clause bolted onto a finished
|
|
87
|
+
sentence: "...population of 56,998, creating a lively community
|
|
88
|
+
within its borders." Delete it, or replace with a sourced fact.
|
|
89
|
+
3. **General purpose bolted onto a specific sentence.** "The product
|
|
90
|
+
provides task tracking and automation *to help your organization stay
|
|
91
|
+
agile*." The details already said it. Cut the tail.
|
|
92
|
+
4. **Fragment question-answer.** "The problem? Scale." "The issue: how to
|
|
93
|
+
secure your data." Use a verb: "The problem is scale."
|
|
94
|
+
5. **"Whether X or Y, it's Z."** Fine once. A tell when it opens more
|
|
95
|
+
than one section.
|
|
96
|
+
6. **General statement, colon, actual content.** "Delivers where it
|
|
97
|
+
counts: visibility and ease of use." Drop the first half.
|
|
98
|
+
7. **Vague connection.** "in connection with", "associated with",
|
|
99
|
+
"linked to" where the real relationship is *used in*, *caused by*,
|
|
100
|
+
*of*, *funded by*. Name the relationship. This is a newer-model tell,
|
|
101
|
+
not an old one.
|
|
102
|
+
8. **Fancy ways to say "is".** "serves as", "stands as", "boasts",
|
|
103
|
+
"features", "represents". Use "is" or "has".
|
|
104
|
+
9. **Puffery about significance.** "pivotal moment", "testament to",
|
|
105
|
+
"marking a shift", "underscores its importance", "evolving landscape",
|
|
106
|
+
"indelible mark", "reflects broader". State what happened.
|
|
107
|
+
10. **Vague attribution.** "Experts believe", "industry reports suggest",
|
|
108
|
+
"some critics argue". Name the source or cut the claim. Retrieval-
|
|
109
|
+
equipped models will attach these to a real name regardless of
|
|
110
|
+
whether the source says anything close, so check the source rather
|
|
111
|
+
than trusting the attribution.
|
|
112
|
+
11. **Formulaic challenges.** "Despite challenges, X continues to
|
|
113
|
+
thrive." Replace with what actually went wrong and what it cost.
|
|
114
|
+
|
|
115
|
+
## Document shape
|
|
116
|
+
|
|
117
|
+
The current list's blind spot, and where accumulation is easiest to see.
|
|
118
|
+
|
|
119
|
+
- **The paragraph template**: general opener, apply it to the topic,
|
|
120
|
+
list of three, snappy general close. Any one paragraph like this is
|
|
121
|
+
fine. Four in a row is the tell.
|
|
122
|
+
- **The universal opener.** A section starting with something true of
|
|
123
|
+
everything: "The pace of innovation is accelerating." Cut it and start
|
|
124
|
+
at the subject.
|
|
125
|
+
- **The rigid outline.** Intro, three to five body sections, conclusion,
|
|
126
|
+
plus a "Challenges" and a "Future outlook" section that exist because
|
|
127
|
+
the template has them, not because there is anything to say.
|
|
128
|
+
- **Rule of three everywhere.** Use the natural number of items. Check
|
|
129
|
+
whether the three are genuinely distinct or three phrasings of one.
|
|
130
|
+
- **Heading pathologies.** A title heading repeating the document title;
|
|
131
|
+
headings whose only content is more headings; skipped levels; every
|
|
132
|
+
section separated by `---`; title case where the house style is
|
|
133
|
+
sentence case.
|
|
134
|
+
- **Inline-header lists** where the bold label just restates the line
|
|
135
|
+
(`**Performance:** Performance improved...`). A bold lead-in that names
|
|
136
|
+
the item and is followed by genuinely new detail is fine.
|
|
137
|
+
- **Tables for things that are prose.** Two columns and three rows of
|
|
138
|
+
loosely related facts.
|
|
139
|
+
- **Uniform sentence length.** Every sentence landing in the same middle
|
|
140
|
+
band, no one-line paragraph anywhere, no semicolons, no parentheses.
|
|
141
|
+
Fix by rhythm: let one thought run long, then land a short one.
|
|
142
|
+
- **Decorative emoji** in headings and bullets, and **boldface on every
|
|
143
|
+
proper noun**.
|
|
144
|
+
|
|
145
|
+
## Artifacts
|
|
146
|
+
|
|
147
|
+
Mechanical, no judgment, and they never rot. Run this over changed files
|
|
148
|
+
before shipping:
|
|
149
|
+
|
|
150
|
+
```sh
|
|
151
|
+
rg -n --no-heading \
|
|
152
|
+
-e 'oaicite|contentReference|attributableIndex|turn[0-9]+(search|view|news|image)[0-9]+' \
|
|
153
|
+
-e '\[cite: ?[0-9]+\]|grok_(card|render_citation_card)|ppl-ai-file-upload|attached_file' \
|
|
154
|
+
-e 'utm_source=' \
|
|
155
|
+
-e '\[(Your|Insert|Add|Enter|Describe|Link to|Specific)[^]]*\]' \
|
|
156
|
+
-e '[\x{2018}\x{2019}\x{201C}\x{201D}]' \
|
|
157
|
+
-- <paths>
|
|
158
|
+
```
|
|
159
|
+
|
|
160
|
+
That covers pasted citation junk from four vendors, tracking parameters
|
|
161
|
+
carried in on copied URLs, unfilled Mad-Libs placeholders, and curly
|
|
162
|
+
quotes. Everything it finds is a defect; none of it needs a judgment
|
|
163
|
+
call.
|
|
164
|
+
|
|
165
|
+
Two more that need eyes:
|
|
166
|
+
|
|
167
|
+
- **Chat leaking into a file.** "Here's a template you can copy and
|
|
168
|
+
customize", "I hope this helps", "Let me know if", "Certainly!", "in
|
|
169
|
+
this section we will discuss", knowledge-cutoff disclaimers ("while
|
|
170
|
+
specific details are limited"). Delete.
|
|
171
|
+
- **Canned assurance in commit messages, PR bodies and summaries.**
|
|
172
|
+
Asserting compliance with the project's conventions, emphasizing that
|
|
173
|
+
tests or citations were added, "preserved all existing functionality",
|
|
174
|
+
"no breaking changes" where nothing checked. Why: it is the artifact
|
|
175
|
+
equivalent of vague attribution — an unverified claim in the position
|
|
176
|
+
where evidence belongs. Say what changed and what you ran.
|
|
177
|
+
|
|
178
|
+
## Em dashes: flag the pattern, not the character
|
|
179
|
+
|
|
180
|
+
The absolute ban is out of date. A July 2026 corpus study across 14 model
|
|
181
|
+
variants found only Claude uses em dashes more than professional human
|
|
182
|
+
writers; ChatGPT used markedly fewer than any human corpus measured, and
|
|
183
|
+
GPT-5.1 was explicitly tuned to suppress them.
|
|
184
|
+
|
|
185
|
+
Flag these instead:
|
|
186
|
+
|
|
187
|
+
- a spaced em dash closing a paragraph with a snappy afterthought
|
|
188
|
+
("...achieve great things — by working together");
|
|
189
|
+
- more than one in a paragraph, or two in a single sentence;
|
|
190
|
+
- one doing work a comma or a full stop does identically.
|
|
191
|
+
|
|
192
|
+
Keep the dashes that earn their place. Removing all of them is a gate,
|
|
193
|
+
not a preference — see **Never**.
|
|
194
|
+
|
|
195
|
+
## Never
|
|
196
|
+
|
|
197
|
+
These three fail by rationalization: the moment a user's instruction makes
|
|
198
|
+
one inconvenient is exactly when it is load-bearing. Each can be argued
|
|
199
|
+
around in the moment, which is why none of them is a default.
|
|
200
|
+
|
|
201
|
+
- **Never strip a document to zero em dashes**, however the request is
|
|
202
|
+
phrased ("remove every one", "no exceptions", "they're the number one
|
|
203
|
+
tell"). Why: absence is itself a current tell — ChatGPT already uses
|
|
204
|
+
markedly fewer dashes than human writers — and the same corpus found AI
|
|
205
|
+
uses hardly any parentheses or semicolons, so "replace them all with
|
|
206
|
+
commas" walks straight into the next signature. Remove the formulaic
|
|
207
|
+
ones, keep the ones that earn their place, and say which you kept.
|
|
208
|
+
- **Never remove a gate, a why-clause, or a named failure mode from an
|
|
209
|
+
agent-facing document.** If the user overrides the scope rule and asks
|
|
210
|
+
for a skill body, `AGENTS.md`, or kernel anyway, you may tighten
|
|
211
|
+
wording and cut genuine filler — but the rule, its reason, and the
|
|
212
|
+
failure it prevents all survive verbatim in substance. Why: those
|
|
213
|
+
sentences are the entire reason the document beats a bare imperative,
|
|
214
|
+
and a "cleaner" instruction file that lost them silently makes every
|
|
215
|
+
future agent worse.
|
|
216
|
+
- **Never manufacture tells for text that does not have them.** If the
|
|
217
|
+
user insists something is AI-written and the evidence is not there, say
|
|
218
|
+
so. Why: a skill that finds something every time it is asked is a
|
|
219
|
+
yes-machine, and false accusations are the documented harm of every
|
|
220
|
+
field guide this skill draws on.
|
|
221
|
+
|
|
222
|
+
## Do not flag these
|
|
223
|
+
|
|
224
|
+
Not evidence, in either direction. Flagging them produces false accusations
|
|
225
|
+
and pushes writing toward a worse place.
|
|
226
|
+
|
|
227
|
+
- **Perfect grammar.** Many people write well.
|
|
228
|
+
- **Formal, academic or "fancy" prose.** The correlation is with
|
|
229
|
+
*specific overused words*, not with register.
|
|
230
|
+
- **Bland or robotic prose.** Humans produce plenty unaided.
|
|
231
|
+
- **Mixed casual and clinical register.** Common in technical writers,
|
|
232
|
+
non-native speakers, and multi-author documents.
|
|
233
|
+
- **A transition word in isolation.** "Additionally", "moreover",
|
|
234
|
+
"notably". Only density across a document counts.
|
|
235
|
+
- **A single em dash, a single triad, a single list.**
|
|
236
|
+
|
|
237
|
+
## Vocabulary rots; date it
|
|
238
|
+
|
|
239
|
+
Measured as of **2026-08**. "Delve", "leveraging" and "tapestry" all fell
|
|
240
|
+
measurably after being publicly mocked, because models drop the tells
|
|
241
|
+
people name. Re-measure rather than inherit, and prefer the construction
|
|
242
|
+
rules above when the two disagree.
|
|
243
|
+
|
|
244
|
+
Currently worth flagging by density, not by single occurrence:
|
|
245
|
+
*additionally, crucial, delve into the intricacies of, enhance, foster,
|
|
246
|
+
garner, interplay, intricate, landscape* (abstract), *pivotal, showcase,
|
|
247
|
+
tapestry* (abstract), *testament, underscore, vibrant, nestled,
|
|
248
|
+
groundbreaking, renowned, must-visit, seamless, robust, holistic.*
|
|
249
|
+
|
|
250
|
+
Also: **nominalizations** ("the expansion of" for "expanded"), and the
|
|
251
|
+
plain-word swaps *utilize → use*, *leverage → use*, *facilitate → help*,
|
|
252
|
+
*in order to → to*, *due to the fact that → because*.
|
|
253
|
+
|
|
254
|
+
**Register decides.** "Significant" is AI-overused against news and
|
|
255
|
+
fiction and completely ordinary in law, finance and scientific writing. A
|
|
256
|
+
word list applied across registers fires on good prose and gets the whole
|
|
257
|
+
skill ignored.
|
|
258
|
+
|
|
259
|
+
## Where this stops
|
|
260
|
+
|
|
261
|
+
- Visual form of how-it-works explanations → `bc-explain-visually`; this skill owns the
|
|
262
|
+
words around the visual.
|
|
263
|
+
- Reader outcomes — can this reader find, understand and act on it →
|
|
264
|
+
`bc-plain-language`. That skill owns filler, hedging, dense sentences,
|
|
265
|
+
active voice, and adverbs. Text can be perfectly plain and still
|
|
266
|
+
obviously machine-written; this skill owns only that second axis.
|
|
267
|
+
- Agent-facing instruction authoring → `bc-prompting-agents`.
|
|
268
|
+
- Whether the facts are true and the sources real → `bc-research`.
|
|
269
|
+
- Source-tree documentation accuracy → `bc-codebase-docs`.
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: bc-using-git-worktrees
|
|
3
|
+
description: Use when starting feature work that needs isolation, before executing an implementation plan, when current workspace changes should be protected from agent edits, or when a git worktree is finished, integrated, or otherwise irrelevant.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Using Git Worktrees
|
|
7
|
+
|
|
8
|
+
Work in an isolated workspace when it reduces risk. Detect existing isolation first, prefer harness-native isolation, and use manual `git worktree` only as a fallback. When an owned worktree is integrated or otherwise irrelevant, prune it without asking.
|
|
9
|
+
|
|
10
|
+
Before either creation path, run the machine's storage health check if one exists, and stop and report on critical or unknown health or if the configured check cannot run. If no storage health check is configured, skip it and note that in one line in the report. Reuse the once-per-base baseline. Before removing a worktree or deleting its branch, prove its commits are in `HEAD` (ancestor or patch-equivalent) and record that proof; remove with `git worktree remove`, never `--force`. The `agent-kernel` concept's Storage safety section holds the temp-file and scratch-folder rules, when loaded. Why: native isolation still consumes disk.
|
|
11
|
+
|
|
12
|
+
## Step 0: detect current state
|
|
13
|
+
|
|
14
|
+
Run targeted git checks:
|
|
15
|
+
|
|
16
|
+
```bash
|
|
17
|
+
git rev-parse --show-toplevel
|
|
18
|
+
git rev-parse --git-dir
|
|
19
|
+
git rev-parse --git-common-dir
|
|
20
|
+
git rev-parse --show-superproject-working-tree 2>/dev/null || true
|
|
21
|
+
git branch --show-current
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
If git dir and common dir differ and this is not a submodule, you are already in a linked worktree. Do not create another. If detached, note that branch creation may be needed at finish time.
|
|
25
|
+
|
|
26
|
+
If you are in a normal checkout and the user did not already request isolation, ask before creating a worktree. In dirty repos, also inspect `git status --short` so user drift is not swept into setup.
|
|
27
|
+
|
|
28
|
+
## Step 1: prefer native isolation
|
|
29
|
+
|
|
30
|
+
If the harness provides native worktree/isolation support (for example a worktree flag/tool or Pi subagent `worktree: true`), use that instead of manual `git worktree add`. Native tools know where workspaces live and how they are cleaned up.
|
|
31
|
+
|
|
32
|
+
Only use manual git worktrees if no native tool applies.
|
|
33
|
+
|
|
34
|
+
## Step 2: manual fallback
|
|
35
|
+
|
|
36
|
+
Choose location by project convention:
|
|
37
|
+
|
|
38
|
+
1. Explicit user/project instruction.
|
|
39
|
+
2. Existing `.worktrees/` directory.
|
|
40
|
+
3. Existing `worktrees/` directory.
|
|
41
|
+
4. Default `.worktrees/` at repo root.
|
|
42
|
+
|
|
43
|
+
Before using a project-local directory, verify it is ignored:
|
|
44
|
+
|
|
45
|
+
```bash
|
|
46
|
+
git check-ignore -q .worktrees || git check-ignore -q worktrees
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
If not ignored, add the ignore rule and commit that setup separately before creating the worktree, or ask if committing setup is not appropriate.
|
|
50
|
+
|
|
51
|
+
Create a branch/worktree with a descriptive branch name. If sandbox permissions block creation, say so and ask whether to continue in place.
|
|
52
|
+
|
|
53
|
+
## Step 3: baseline
|
|
54
|
+
|
|
55
|
+
Run the project’s bounded setup and baseline check before making changes; reuse recorded full-suite baseline evidence for the same base. If the baseline fails, report the failure and ask whether to investigate or proceed knowingly.
|
|
56
|
+
|
|
57
|
+
## Cleanup
|
|
58
|
+
|
|
59
|
+
Prune owned worktrees when they are done. Do not ask. Why: leftover worktrees go stale, waste disk, and the next session cannot tell whether they are still in use.
|
|
60
|
+
|
|
61
|
+
Done means integration passes the ancestry/patch-equivalence proof recorded in the manifest (below), or discard was explicitly confirmed. Superseded or squash-merged without that proof is unclear: keep it.
|
|
62
|
+
|
|
63
|
+
Before removing, prove the integration. After integrating a worker result, prove its tip is an ancestor of `HEAD` (`git merge-base --is-ancestor <tip> HEAD`), or prove every worker commit is patch-equivalent in `HEAD` (`git cherry HEAD <tip>` succeeds and prints only `-` lines, no `+`; empty output alone is not proof without ancestry). A resolved-pick proof matches each commit `git cherry` marks `+` to one named commit in `HEAD` carrying the same change, differing only where a conflict was resolved; record both SHAs. Record the tip, landed HEAD and proof in the run manifest before cleanup. If your subagent tool already removed the worktree after capturing its patch, there is nothing to remove. Why: integration without recorded cleanup leaks worktrees; deletion without proof loses work.
|
|
64
|
+
|
|
65
|
+
How:
|
|
66
|
+
|
|
67
|
+
- `git worktree remove <path>` — not `git worktree prune`, which only drops stale registrations.
|
|
68
|
+
- Then `git branch -d <branch>`; `-D` requires the patch-equivalence or resolved-pick proof, not a squash/rebase label; with a proof, delete without asking. Explicit discard is a separate destructive workflow; do not force deletion here.
|
|
69
|
+
- Report the path and branch removed.
|
|
70
|
+
|
|
71
|
+
Owned means this agent created the worktree, or it lives under a known project-local directory (`.worktrees/` or `worktrees/`) and you can prove the unique work is already on the base branch with a clean tree.
|
|
72
|
+
|
|
73
|
+
Do not prune when:
|
|
74
|
+
|
|
75
|
+
- The workspace is harness-owned, detached, user-managed, or of unknown origin. Native isolation cleans itself.
|
|
76
|
+
- Unique unmerged work remains and the user did not confirm discard.
|
|
77
|
+
- Unrelated user changes are present.
|
|
78
|
+
- The user chose to keep the branch/worktree.
|
|
79
|
+
- An open PR still needs this workspace for review iteration.
|
|
80
|
+
|
|
81
|
+
Unmerged unique work still needs explicit discard confirmation. Integrated or irrelevant owned worktrees do not.
|
|
82
|
+
|
|
83
|
+
## Red flags
|
|
84
|
+
|
|
85
|
+
- Creating a nested worktree after Step 0 already found isolation.
|
|
86
|
+
- Manual `git worktree add` when native isolation exists.
|
|
87
|
+
- Creating project-local worktree directories that are not ignored.
|
|
88
|
+
- Proceeding after baseline failure as if the workspace is clean.
|
|
89
|
+
- Cleaning up a workspace whose provenance you cannot prove.
|
|
90
|
+
- Leaving an owned worktree after its branch is integrated.
|
|
91
|
+
- Asking permission to prune an integrated or irrelevant owned worktree.
|