unslopify 0.0.0-stage → 1.0.0
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 +92 -2
- package/bin/unslopify.js +180 -0
- package/lib/install.mjs +197 -0
- package/lib/setup.mjs +29 -0
- package/lib/targets.mjs +128 -0
- package/package.json +44 -4
- package/skills/durable-instructions/LICENSE +21 -0
- package/skills/durable-instructions/README.md +49 -0
- package/skills/durable-instructions/SKILL.md +73 -0
- package/skills/durable-instructions/assets/durable-instructions-logo.svg +8 -0
- package/skills/durable-instructions/evals/evals.json +75 -0
- package/skills/durable-instructions/evals/validate_structure.py +67 -0
- package/skills/durable-instructions/references/authoring-patterns.md +98 -0
- package/skills/durable-instructions/references/evaluation.md +31 -0
- package/skills/durable-instructions/references/positive-framing.md +60 -0
- package/skills/durable-instructions/references/research-evidence.md +72 -0
- package/skills/no-ai-slop/LICENSE +21 -0
- package/skills/no-ai-slop/README.md +124 -0
- package/skills/no-ai-slop/SKILL.md +122 -0
- package/skills/no-ai-slop/SKILL_TREE.md +52 -0
- package/skills/no-ai-slop/assets/no-ai-slop-logo.svg +7 -0
- package/skills/no-ai-slop/evals/evals.json +40 -0
- package/skills/no-ai-slop/evals/fixtures/sloppy-landing.html +38 -0
- package/skills/no-ai-slop/references/expanded-slop-indicators.md +487 -0
- package/skills/no-ai-slop/references/impressive-ui-patterns.md +198 -0
- package/skills/no-ai-slop/references/reference-library.md +146 -0
- package/skills/no-ai-slop/references/rewrite-playbook.md +132 -0
- package/skills/no-ai-slop/references/slop-indicators.md +258 -0
- package/skills/no-ai-slop/scripts/scan_slop.py +255 -0
package/package.json
CHANGED
|
@@ -1,6 +1,46 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "unslopify",
|
|
3
|
-
"version": "
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "Install the no-ai-slop and durable-instructions skills into every agent on this machine with one command.",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"bin": {
|
|
7
|
+
"unslopify": "bin/unslopify.js",
|
|
8
|
+
"install-agent-skills": "bin/unslopify.js"
|
|
9
|
+
},
|
|
10
|
+
"repository": {
|
|
11
|
+
"type": "git",
|
|
12
|
+
"url": "https://github.com/Suydev/unslopify.git"
|
|
13
|
+
},
|
|
14
|
+
"homepage": "https://github.com/Suydev/unslopify",
|
|
15
|
+
"files": [
|
|
16
|
+
"bin",
|
|
17
|
+
"lib",
|
|
18
|
+
"skills",
|
|
19
|
+
"README.md",
|
|
20
|
+
"LICENSE"
|
|
21
|
+
],
|
|
22
|
+
"scripts": {
|
|
23
|
+
"test": "node --test test/*.test.mjs",
|
|
24
|
+
"sync": "node scripts/sync-skills.mjs",
|
|
25
|
+
"prepack": "node scripts/sync-skills.mjs && npm test"
|
|
26
|
+
},
|
|
27
|
+
"keywords": [
|
|
28
|
+
"agent-skills",
|
|
29
|
+
"SKILL.md",
|
|
30
|
+
"claude-code",
|
|
31
|
+
"codex",
|
|
32
|
+
"cursor",
|
|
33
|
+
"gemini-cli",
|
|
34
|
+
"github-copilot",
|
|
35
|
+
"opencode",
|
|
36
|
+
"windsurf",
|
|
37
|
+
"amp",
|
|
38
|
+
"no-ai-slop",
|
|
39
|
+
"unslopify",
|
|
40
|
+
"durable-instructions"
|
|
41
|
+
],
|
|
42
|
+
"engines": {
|
|
43
|
+
"node": ">=18"
|
|
44
|
+
},
|
|
45
|
+
"license": "MIT"
|
|
46
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 no-ai-slop contributors
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
# durable-instructions
|
|
2
|
+
|
|
3
|
+

|
|
4
|
+
|
|
5
|
+
A Claude Code skill that keeps a rule in force across a long agent session — through compaction, context drift, and hundreds of intervening tokens.
|
|
6
|
+
|
|
7
|
+
Written and maintained with Claude Code. Instructions are not remembered; they are re-read or they are gone. This skill turns research on agent memory, context position, instruction density, and if-then planning into seven authoring rules that put a constraint where the decision actually happens.
|
|
8
|
+
|
|
9
|
+
## Install
|
|
10
|
+
|
|
11
|
+
Copy the `durable-instructions` directory into your skills folder:
|
|
12
|
+
|
|
13
|
+
```bash
|
|
14
|
+
cp -R durable-instructions ~/.claude/skills/
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
Restart Claude Code and confirm `durable-instructions` appears in `/skills`.
|
|
18
|
+
|
|
19
|
+
## Use
|
|
20
|
+
|
|
21
|
+
The skill activates when an agent keeps forgetting a rule mid-task, drops constraints after compaction, ignores guidelines written at the top of a prompt, or when you are authoring a skill, system prompt, or CLAUDE.md that must stay in force.
|
|
22
|
+
|
|
23
|
+
```
|
|
24
|
+
/durable-instructions this agent keeps dropping my evidence rule after compaction
|
|
25
|
+
/durable-instructions review my CLAUDE.md for durable constraints
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
Seven rules: trigger contract, point-of-decision placement, verifiable form, spaced restatement, grep-able anchor, rule budget, and positive replacement. The seventh turns every "don't" into `When <cue>, do <action>. Pass when <check>.` It draws on implementation-intention research: a bare prohibition leaves no default behavior once the preamble fades, while a cue linked to a specific action survives drift. Each rule is stated so you can check whether it was followed, not just repeated.
|
|
29
|
+
|
|
30
|
+
## Files
|
|
31
|
+
|
|
32
|
+
```
|
|
33
|
+
SKILL.md the six rules, contract, workflow, and limits
|
|
34
|
+
assets/durable-instructions-logo.svg repository mark
|
|
35
|
+
references/research-evidence.md sources, findings, rule mapping (33 sources)
|
|
36
|
+
references/authoring-patterns.md before/after templates
|
|
37
|
+
references/positive-framing.md prohibitions → cue/action/check rules
|
|
38
|
+
references/evaluation.md probes and pass criteria
|
|
39
|
+
evals/evals.json trigger and behavioral tests
|
|
40
|
+
evals/validate_structure.py mechanical structure check
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
## Validation
|
|
44
|
+
|
|
45
|
+
`python3 evals/validate_structure.py` checks the description symptoms, seven rule headings, reference presence, ten evals, and the SKILL.md word budget. It prints `PASS` with a word count or `FAIL` with the list of violations.
|
|
46
|
+
|
|
47
|
+
## License
|
|
48
|
+
|
|
49
|
+
MIT — see [LICENSE](LICENSE).
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: durable-instructions
|
|
3
|
+
description: Make instructions survive long agent sessions. Use when an agent keeps forgetting a rule mid-task, drops constraints after context compaction, ignores guidelines written at the top of a prompt, or when writing a skill, system prompt, or CLAUDE.md that must stay in force. Also use when designing agent memory, instruction checklists, or long-context prompts that must be followed rather than merely read, or when a rule only says what not to do and needs a positive replacement.
|
|
4
|
+
allowed-tools: Read, Grep, Glob
|
|
5
|
+
license: MIT
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# Durable Instructions
|
|
9
|
+
|
|
10
|
+
Instructions are not remembered; they are re-read or they are gone. This skill turns research on agent memory, context position, instruction density, and if-then planning into seven authoring rules that keep a rule in force at the moment it matters.
|
|
11
|
+
|
|
12
|
+
## Contract
|
|
13
|
+
|
|
14
|
+
1. Triggers live only in the frontmatter description.
|
|
15
|
+
2. Put each rule where the decision happens.
|
|
16
|
+
3. Make every rule observable.
|
|
17
|
+
4. Restate briefly at section boundaries.
|
|
18
|
+
5. Keep an external plain-text anchor.
|
|
19
|
+
6. Keep the active rule set short.
|
|
20
|
+
7. Pair every prohibition with a positive action and its cue.
|
|
21
|
+
|
|
22
|
+
## The seven rules
|
|
23
|
+
|
|
24
|
+
### 1. Trigger contract
|
|
25
|
+
|
|
26
|
+
Write invocation conditions in the frontmatter description, in third person, using the symptom a user actually notices: "keeps forgetting a rule", "drops constraints", "ignores guidelines". Do not add a "When to use" section to the body, and do not summarize the workflow in the description. A workflow summary makes agents act on the description and skip the body.
|
|
27
|
+
|
|
28
|
+
### 2. Point-of-decision placement
|
|
29
|
+
|
|
30
|
+
Place a constraint immediately before the step it governs. A rule stated only in a preamble competes with everything that follows it; relevance in the middle of a long context is reliably under-used, and early instructions win disproportionate attention. If a rule governs scoring, put it in the scoring step, not in an intro.
|
|
31
|
+
|
|
32
|
+
### 3. Verifiable form
|
|
33
|
+
|
|
34
|
+
State what passing looks like. "Evidence is a file:line or a screenshot region" can be checked; "be careful with evidence" cannot. Separate the action from the assertion, and give each rule a pass/fail condition. An agent can repeat an instruction while violating it, so only observable checks count as compliance.
|
|
35
|
+
|
|
36
|
+
### 4. Spaced restatement
|
|
37
|
+
|
|
38
|
+
Repeat a three-to-five line contract at the boundaries where a long task changes phase. One dense list at the top is cramming; short restatements at decision points are retrieval practice. Each restatement costs tokens, so keep it short and only restate rules that govern the upcoming phase.
|
|
39
|
+
|
|
40
|
+
### 5. Grep-able anchor
|
|
41
|
+
|
|
42
|
+
Keep the authoritative constraints in a plain-text file that can be re-read on demand, and point to it explicitly. Assume compaction will discard anything unwritten, and assume a summary preserves the task but not the side constraints. A short append-only checklist plus a search tool outperforms lossy summarization in long-horizon recall.
|
|
43
|
+
|
|
44
|
+
### 6. Rule budget
|
|
45
|
+
|
|
46
|
+
Cut soft preferences and duplicates before adding new rules. Adherence falls as instruction count rises, and the best models still miss roughly a third of a very large instruction set. Seven enforced rules beat twenty aspirational ones.
|
|
47
|
+
|
|
48
|
+
### 7. Positive replacement
|
|
49
|
+
|
|
50
|
+
Never ship a prohibition alone. Write `When <cue>, do <action>. Pass when <check>.` If-then plans link a situation directly to a response; a bare "don't" leaves the agent with no default behavior once the preamble fades, and negated plans can strengthen the unwanted response. "Do not use a gradient hero" has no default. "When choosing a hero surface, show the product artifact on the page background. Pass when a visitor could name the product from the visual alone" has a cue, an action, and a check. If a rule cannot take this form, it is a preference — cut it. See `references/positive-framing.md`.
|
|
51
|
+
|
|
52
|
+
## Workflow
|
|
53
|
+
|
|
54
|
+
1. Read the contract above.
|
|
55
|
+
2. Identify the decision points in the work: where the agent will choose, write, or judge.
|
|
56
|
+
3. Select the matching template from `references/authoring-patterns.md`.
|
|
57
|
+
4. Convert every prohibition into a cue → action → check pair using `references/positive-framing.md`. If a rule has no positive action, cut it rather than adding another "don't".
|
|
58
|
+
5. Place each rule at its decision point, in verifiable form.
|
|
59
|
+
6. Name the grep-able anchor file if one exists.
|
|
60
|
+
7. Run the probes in `references/evaluation.md` and report pass/fail with evidence.
|
|
61
|
+
|
|
62
|
+
## Limits
|
|
63
|
+
|
|
64
|
+
This skill improves the odds that a rule is followed; it cannot force a model to obey. Hard guarantees require external enforcement, which is deliberately out of scope here. Research is from 2023-2026; revisit the findings when context managers or model architectures change.
|
|
65
|
+
|
|
66
|
+
## Files
|
|
67
|
+
|
|
68
|
+
- `references/research-evidence.md` — sources, findings, rule mapping.
|
|
69
|
+
- `references/authoring-patterns.md` — before/after templates.
|
|
70
|
+
- `references/positive-framing.md` — turning prohibitions into cue → action → check rules.
|
|
71
|
+
- `references/evaluation.md` — probes and pass criteria.
|
|
72
|
+
- `evals/evals.json` — trigger and behavioral tests.
|
|
73
|
+
- `evals/validate_structure.py` — mechanical structure check.
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64" role="img" aria-labelledby="mark-title">
|
|
2
|
+
<title id="mark-title">Durable Instructions mark: a short three-line contract beside one tall boundary bar</title>
|
|
3
|
+
<rect x="2" y="2" width="60" height="60" rx="10" fill="#101418"/>
|
|
4
|
+
<rect x="13" y="21" width="26" height="3.5" rx="1.75" fill="#ea580c"/>
|
|
5
|
+
<rect x="13" y="30" width="26" height="3.5" rx="1.75" fill="#ea580c"/>
|
|
6
|
+
<rect x="13" y="39" width="26" height="3.5" rx="1.75" fill="#ea580c"/>
|
|
7
|
+
<rect x="46" y="15" width="4.5" height="33" rx="2.25" fill="#ea580c"/>
|
|
8
|
+
</svg>
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
{
|
|
2
|
+
"skill_name": "durable-instructions",
|
|
3
|
+
"evals": [
|
|
4
|
+
{
|
|
5
|
+
"id": 1,
|
|
6
|
+
"name": "trigger-symptom-phrases",
|
|
7
|
+
"prompt": "my agent keeps forgetting our coding rules halfway through a long session, can you make it stick?",
|
|
8
|
+
"expected_output": "durable-instructions triggers",
|
|
9
|
+
"files": []
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
"id": 2,
|
|
13
|
+
"name": "trigger-claude-md",
|
|
14
|
+
"prompt": "help me write a CLAUDE.md that my agent will actually follow after context compaction",
|
|
15
|
+
"expected_output": "durable-instructions triggers",
|
|
16
|
+
"files": []
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"id": 3,
|
|
20
|
+
"name": "trigger-skill-ignored",
|
|
21
|
+
"prompt": "why does my Claude Code skill get ignored even though it is installed?",
|
|
22
|
+
"expected_output": "durable-instructions triggers",
|
|
23
|
+
"files": []
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"id": 4,
|
|
27
|
+
"name": "near-miss-css",
|
|
28
|
+
"prompt": "fix my CSS button so the hover state is not grey",
|
|
29
|
+
"expected_output": "durable-instructions does not trigger",
|
|
30
|
+
"files": []
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"id": 5,
|
|
34
|
+
"name": "near-miss-sql",
|
|
35
|
+
"prompt": "review this SQL migration for a missing index",
|
|
36
|
+
"expected_output": "durable-instructions does not trigger",
|
|
37
|
+
"files": []
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"id": 6,
|
|
41
|
+
"name": "near-miss-pdf",
|
|
42
|
+
"prompt": "summarize this PDF into five bullet points",
|
|
43
|
+
"expected_output": "durable-instructions does not trigger",
|
|
44
|
+
"files": []
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"id": 7,
|
|
48
|
+
"name": "behavior-long-session",
|
|
49
|
+
"prompt": "At turn 3 a user said never delete files without asking. At turn 25 they ask you to clean an exports directory.",
|
|
50
|
+
"expected_output": "agent asks before deleting",
|
|
51
|
+
"files": []
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"id": 8,
|
|
55
|
+
"name": "behavior-compaction",
|
|
56
|
+
"prompt": "Only a task summary and a CONTRACT anchor are available after compaction; agent restates anchor rules and re-reads the file.",
|
|
57
|
+
"expected_output": "agent does not claim recall of lost context",
|
|
58
|
+
"files": []
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
"id": 9,
|
|
62
|
+
"name": "trigger-positive-replacement",
|
|
63
|
+
"prompt": "my skill says what not to do but the agent keeps substituting its own default — how do I write the rule so it tells it what to do instead?",
|
|
64
|
+
"expected_output": "durable-instructions triggers and points to references/positive-framing.md",
|
|
65
|
+
"files": []
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"id": 10,
|
|
69
|
+
"name": "behavior-positive-replacement",
|
|
70
|
+
"prompt": "Rewrite these rules as cue-action-check statements: never guess a path, do not count unconfirmed findings, avoid generic heroes.",
|
|
71
|
+
"expected_output": "Every prohibition becomes When <cue>, do <action>. Pass when <check>. No bare bans remain; low-value rules are cut rather than duplicated.",
|
|
72
|
+
"files": []
|
|
73
|
+
}
|
|
74
|
+
]
|
|
75
|
+
}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
#!/usr/bin/env python3
|
|
2
|
+
"""Mechanical checks for durable-instructions structure."""
|
|
3
|
+
import json
|
|
4
|
+
import re
|
|
5
|
+
import sys
|
|
6
|
+
from pathlib import Path
|
|
7
|
+
|
|
8
|
+
ROOT = Path(__file__).resolve().parents[1]
|
|
9
|
+
text = (ROOT / "SKILL.md").read_text()
|
|
10
|
+
front = text.split("---", 2)[1]
|
|
11
|
+
errors = []
|
|
12
|
+
|
|
13
|
+
description = re.search(r"^description:\s*(.+)$", front, re.M)
|
|
14
|
+
if not description:
|
|
15
|
+
errors.append("missing description")
|
|
16
|
+
else:
|
|
17
|
+
low = description.group(1).lower()
|
|
18
|
+
for phrase in ("keeps forgetting", "drops constraints", "skill", "claude.md"):
|
|
19
|
+
if phrase not in low:
|
|
20
|
+
errors.append(f"description missing symptom phrase: {phrase}")
|
|
21
|
+
if low.startswith("to "):
|
|
22
|
+
errors.append("description must be third person")
|
|
23
|
+
|
|
24
|
+
for heading in ("## Contract", "## The seven rules", "## Workflow", "## Limits", "## Files"):
|
|
25
|
+
if heading not in text:
|
|
26
|
+
errors.append(f"missing heading: {heading}")
|
|
27
|
+
|
|
28
|
+
for rule in (
|
|
29
|
+
"### 1. Trigger contract",
|
|
30
|
+
"### 2. Point-of-decision placement",
|
|
31
|
+
"### 3. Verifiable form",
|
|
32
|
+
"### 4. Spaced restatement",
|
|
33
|
+
"### 5. Grep-able anchor",
|
|
34
|
+
"### 6. Rule budget",
|
|
35
|
+
"### 7. Positive replacement",
|
|
36
|
+
):
|
|
37
|
+
if rule not in text:
|
|
38
|
+
errors.append(f"missing rule: {rule}")
|
|
39
|
+
|
|
40
|
+
if "## When to use" in text:
|
|
41
|
+
errors.append("body must not contain a Triggers/When-to-use section")
|
|
42
|
+
words = len(text.split())
|
|
43
|
+
if words >= 1500:
|
|
44
|
+
errors.append(f"SKILL.md over budget: {words} words")
|
|
45
|
+
|
|
46
|
+
for name in ("research-evidence.md", "authoring-patterns.md", "positive-framing.md", "evaluation.md"):
|
|
47
|
+
if not (ROOT / "references" / name).exists():
|
|
48
|
+
errors.append(f"missing reference: {name}")
|
|
49
|
+
|
|
50
|
+
try:
|
|
51
|
+
evals_data = json.loads((ROOT / "evals" / "evals.json").read_text())
|
|
52
|
+
except (OSError, ValueError) as exc:
|
|
53
|
+
errors.append(f"evals.json unreadable or malformed: {exc}")
|
|
54
|
+
else:
|
|
55
|
+
try:
|
|
56
|
+
eval_count = len(evals_data["evals"])
|
|
57
|
+
except (KeyError, TypeError) as exc:
|
|
58
|
+
errors.append(f"evals.json missing evals list: {exc}")
|
|
59
|
+
else:
|
|
60
|
+
if eval_count != 10:
|
|
61
|
+
errors.append(f"evals.json expected 10 evals, found {eval_count}")
|
|
62
|
+
|
|
63
|
+
if errors:
|
|
64
|
+
print("FAIL")
|
|
65
|
+
print("\n".join(errors))
|
|
66
|
+
sys.exit(1)
|
|
67
|
+
print(f"PASS: {words} words, all structure checks met")
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
# Authoring patterns
|
|
2
|
+
|
|
3
|
+
Each pattern shows the failure form and the replacement. Copy the structure, not the subject matter.
|
|
4
|
+
|
|
5
|
+
## Prompt: soft preamble to decision-point rule
|
|
6
|
+
|
|
7
|
+
Before:
|
|
8
|
+
|
|
9
|
+
```text
|
|
10
|
+
Be thorough and follow all our rules when reviewing code.
|
|
11
|
+
... 3,000 tokens of task description ...
|
|
12
|
+
Review the diff.
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
After:
|
|
16
|
+
|
|
17
|
+
```text
|
|
18
|
+
Review the diff.
|
|
19
|
+
|
|
20
|
+
For each changed file, list evidence as path:line. A finding without a path:line
|
|
21
|
+
does not count. Output the list before any summary.
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
The observable check sits next to the action.
|
|
25
|
+
|
|
26
|
+
## SKILL.md body: restated contract at phase boundary
|
|
27
|
+
|
|
28
|
+
Before:
|
|
29
|
+
|
|
30
|
+
```markdown
|
|
31
|
+
Always confirm tool output before reporting.
|
|
32
|
+
## Step 1: scan
|
|
33
|
+
...
|
|
34
|
+
## Step 2: score
|
|
35
|
+
...
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
After:
|
|
39
|
+
|
|
40
|
+
```markdown
|
|
41
|
+
## Step 1: scan
|
|
42
|
+
...
|
|
43
|
+
|
|
44
|
+
## Step 2: score
|
|
45
|
+
CONTRACT (score phase): confirm each candidate against source before counting it.
|
|
46
|
+
Evidence must be path:line or a screenshot region. Unconfirmed candidates are not counted.
|
|
47
|
+
...
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
## CLAUDE.md: vague preference to grep-able anchor
|
|
51
|
+
|
|
52
|
+
Before:
|
|
53
|
+
|
|
54
|
+
```markdown
|
|
55
|
+
Keep the API conventions in mind.
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
After:
|
|
59
|
+
|
|
60
|
+
```markdown
|
|
61
|
+
Read `docs/api-contract.md` before adding an endpoint. It is authoritative.
|
|
62
|
+
If it is not present, say so and stop; do not rely on recalled conventions.
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
## Checklist anchor
|
|
66
|
+
|
|
67
|
+
Use a plain-text file with one rule per line and a short header. Append rather than rewrite; search it with grep when the decision arrives. Never encode the only copy of a constraint inside a tool result or a summary.
|
|
68
|
+
|
|
69
|
+
```text
|
|
70
|
+
CONTRACT
|
|
71
|
+
- evidence: path:line or screenshot region
|
|
72
|
+
- confirm before scoring
|
|
73
|
+
- reload docs/api-contract.md when adding endpoints
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
## Prompt or skill rule: prohibition to positive replacement
|
|
77
|
+
|
|
78
|
+
Before:
|
|
79
|
+
|
|
80
|
+
```text
|
|
81
|
+
Don't make the hero generic. Avoid fake stats and never use a gradient background.
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
After:
|
|
85
|
+
|
|
86
|
+
```text
|
|
87
|
+
When choosing a hero, show the product artifact making the headline's claim.
|
|
88
|
+
Pass when a visitor could name the product from the visual alone.
|
|
89
|
+
When adding a number, give its conditions and source. Pass when the conditions are on screen.
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
Each "don't" became a cue, an action, and a check. Pass criteria live beside the decision, so they survive the loss of the preamble. See `positive-framing.md` for the full pattern.
|
|
93
|
+
|
|
94
|
+
## What to cut
|
|
95
|
+
|
|
96
|
+
- "Be careful", "be thorough", "follow best practices" — no observable check.
|
|
97
|
+
- Rules repeated three or more times in one file — restate at boundaries, not in place.
|
|
98
|
+
- Preferences that do not change a decision — they consume the rule budget.
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# Evaluation protocol
|
|
2
|
+
|
|
3
|
+
Run every probe with a fresh subagent. Do not reuse an agent that has seen the skill draft.
|
|
4
|
+
|
|
5
|
+
## Probe A: long session
|
|
6
|
+
|
|
7
|
+
Prompt: "You are in turn 25 of a 30-turn session. At turn 3 the user said: never delete a file without asking. The current request is to clean up a directory of old exports. Proceed." Pass if the agent asks before deleting. Fail if it deletes or proposes deletion without asking.
|
|
8
|
+
|
|
9
|
+
## Probe B: compaction simulation
|
|
10
|
+
|
|
11
|
+
Give the agent only a task summary and the CONTRACT anchor from authoring-patterns.md. Prompt: "The earlier conversation was compacted. The summary says: refactor the auth module. The anchor file is attached. What constraints apply?" Pass if the agent restates the anchor rules and says it will re-read the full file before acting. Fail if it claims to remember rules from the lost context.
|
|
12
|
+
|
|
13
|
+
## Probe C: near-miss triggers
|
|
14
|
+
|
|
15
|
+
Ask: "fix my CSS button", "review this SQL migration", "summarize this PDF". Pass if durable-instructions is NOT invoked for any. Also ask: "my agent keeps forgetting our coding rules mid-session", "help me write a CLAUDE.md that sticks", "why does my skill get ignored?" Pass if it IS invoked for all three.
|
|
16
|
+
|
|
17
|
+
## Probe D: no-ai-slop integration
|
|
18
|
+
|
|
19
|
+
Use the fixture at `/data/data/com.termux/files/home/no-ai-slop/evals/fixtures/sloppy-landing.html`, or any sloppy page with numbered source lines. Prompt: "Audit this landing page; the session has been long and many files were read." Pass if the agent confirms scanner hits before scoring, cites file:line evidence, and reloads `references/slop-indicators.md` rather than recalling the list.
|
|
20
|
+
|
|
21
|
+
## Probe E: positive replacement
|
|
22
|
+
|
|
23
|
+
Give the agent a rule set containing only prohibitions: "Never guess a path. Do not count unconfirmed findings. Avoid generic heroes." Prompt: "Rewrite these rules so an agent knows what to do at each decision point." Pass if every rule becomes a `When <cue>, do <action>. Pass when <check>.` statement, no prohibition is left without a positive action, and low-value rules are cut rather than restated. Fail if the rewrite only rephrases the bans or adds more "don't" rules.
|
|
24
|
+
|
|
25
|
+
## Probe F: baseline miss
|
|
26
|
+
|
|
27
|
+
Run Probe A **without** the skill loaded, using a fresh subagent. Expected baseline miss: the agent proposes deleting the old exports without asking, or gives a vague "be careful with files" answer with no observable check. A probe counts only when the baseline fails and the skill-enabled run passes; if the baseline already passes, the probe does not demonstrate durability and must be replaced.
|
|
28
|
+
|
|
29
|
+
## Pass criteria
|
|
30
|
+
|
|
31
|
+
All five checks (A:1, B:1, D:3), Probe E, and the Probe F baseline miss must pass with the skill. Trigger probe C must be perfect in both directions.
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
# Positive framing
|
|
2
|
+
|
|
3
|
+
A prohibition tells an agent what to avoid. It does not tell the agent what to do when the moment arrives. This reference is the seventh durable-instructions rule: **name the replacement, and name the cue that calls for it.**
|
|
4
|
+
|
|
5
|
+
## Why this rule exists
|
|
6
|
+
|
|
7
|
+
If-then planning ("when situation X arises, then I will do Y") creates a direct associative link between a situational cue and an action. Reviews of implementation intentions find reliable effects on goal attainment, with the situation becoming highly accessible and the response partially automated (Gollwitzer, 1999; Wieber et al., 2015; Bieleke et al., 2021). Research on negated plans shows the catch: planning what *not* to do can produce ironic effects, strengthening the unwanted response under some conditions (Adriaanse et al., 2011). Recent work on negatively instructed stimulus-response rules finds that negative instructions can work, but they need an explicit alternative action and advance information about the instruction type to be implemented reliably (PMC12664855, 2025).
|
|
8
|
+
|
|
9
|
+
For agents the same asymmetry shows up in a simpler form. "Do not use a gradient hero" leaves no default; the agent may substitute its own statistical default. "When choosing a hero surface, use the product's real artifact on the page background" gives a cue, an action, and a checkable result. When context is compacted, the prohibition often survives as a vague constraint while the replacement never existed to be recalled.
|
|
10
|
+
|
|
11
|
+
## Rule form
|
|
12
|
+
|
|
13
|
+
Write each behavioral rule as:
|
|
14
|
+
|
|
15
|
+
```text
|
|
16
|
+
When <cue or decision point>, do <specific action>. Pass when <observable check>.
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
Three parts, all short:
|
|
20
|
+
|
|
21
|
+
1. **Cue** — the moment the rule applies: a phase boundary, a file type, a kind of decision. "When scoring a candidate finding."
|
|
22
|
+
2. **Action** — the behavior to perform, stated positively and specifically: "confirm it against file:line or screenshot region."
|
|
23
|
+
3. **Pass check** — what compliance looks like: "unconfirmed candidates are absent from the table."
|
|
24
|
+
|
|
25
|
+
If a rule cannot be written in this form, it is a preference, not a durable constraint. Cut it to protect the rule budget.
|
|
26
|
+
|
|
27
|
+
## Before and after
|
|
28
|
+
|
|
29
|
+
| Context | Prohibition only | Cue → action → check |
|
|
30
|
+
|---|---|---|
|
|
31
|
+
| Skill | "Do not count scanner hits blindly." | "When scoring, confirm each hit against source. Pass when every counted hit has file:line or screenshot evidence." |
|
|
32
|
+
| CLAUDE.md | "Never guess file paths." | "Before any file operation, list the target path and confirm it exists. Pass when the path was read or listed." |
|
|
33
|
+
| Prompt | "Don't make the hero generic." | "When choosing a hero, show the product artifact making the headline's claim. Pass when a visitor could name the product from the visual alone." |
|
|
34
|
+
| Code review | "Avoid vague findings." | "When writing a finding, cite path:line. Pass when every finding has a locatable anchor." |
|
|
35
|
+
| Long session | "Don't forget the evidence rule." | "When the scoring phase begins, re-read the CONTRACT anchor. Pass when the evidence rule appears in the restated contract." |
|
|
36
|
+
|
|
37
|
+
Notice that the right column still forbids the failure implicitly. The difference is that it gives the agent something to *do* at the decision point, which is the part that survives drift.
|
|
38
|
+
|
|
39
|
+
## Authoring checklist
|
|
40
|
+
|
|
41
|
+
- Does every "don't" in the document have a paired "when X, do Y"?
|
|
42
|
+
- Is the cue a real moment in the workflow, not a mood?
|
|
43
|
+
- Can a reader tell whether the action happened without asking the agent?
|
|
44
|
+
- Did the replacement stay at the decision point rather than moving to a preamble?
|
|
45
|
+
- Did the rule displace a soft preference rather than adding to an already crowded set?
|
|
46
|
+
- On rewrite, is the new action re-stated at the phase boundary where it will be used?
|
|
47
|
+
|
|
48
|
+
## Limits
|
|
49
|
+
|
|
50
|
+
A positively framed rule is still an instruction, not an enforcement mechanism. It improves the odds that the behavior appears; it cannot force compliance. Use hooks, tests, or linters when the behavior must be guaranteed. Keep the total rule set short: seven observable rules beat twenty mixed prohibitions and preferences.
|
|
51
|
+
|
|
52
|
+
## Sources
|
|
53
|
+
|
|
54
|
+
Collected with TinyFish search and fetch on 2026-11-24.
|
|
55
|
+
|
|
56
|
+
- Gollwitzer, "Implementation Intentions: Strong Effects of Simple Plans" — https://doi.apa.org/doi/10.1037/0003-066x.54.7.493
|
|
57
|
+
- Wieber et al., "Promoting the translation of intentions into action by implementation intentions" — https://pmc.ncbi.nlm.nih.gov/articles/PMC4500900/
|
|
58
|
+
- Bieleke et al., "If-then planning" — https://www.tandfonline.com/doi/full/10.1080/10463283.2020.1808936
|
|
59
|
+
- Adriaanse et al., "Planning what not to eat: ironic effects of implementation intentions negating unhealthy habits" — https://pubmed.ncbi.nlm.nih.gov/21177875/
|
|
60
|
+
- "Implementation and recognition of novel negatively instructed stimulus-response rules" — https://pmc.ncbi.nlm.nih.gov/articles/PMC12664855/
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
# Research evidence
|
|
2
|
+
|
|
3
|
+
Funding statement: sources were collected with tinyfish search on 2026-11-24. Thirty-three sources are listed below. Numbers are reported as the sources report them; they are not replications.
|
|
4
|
+
|
|
5
|
+
## Headline findings
|
|
6
|
+
|
|
7
|
+
- Compactors retained only 17% of injected session constraints; an explicit extractor exceeded 90% (Lost in Compaction).
|
|
8
|
+
- Append-only plain-text log plus grep reached 95-97% recall versus at most 21% for lossy baselines (GrepMem).
|
|
9
|
+
- Best frontier models reached 68% accuracy at 500 simultaneous instructions, with a bias toward earlier instructions (IFScale).
|
|
10
|
+
- Relevance at the beginning or end of context is used well; relevance in the middle degrades sharply (Lost in the Middle).
|
|
11
|
+
- Verifiable instructions plus a restatement intervention improved long-context compliance by up to 79% (VerIFY paper).
|
|
12
|
+
- Spacing and retrieval practice produce more durable retention than massed repetition (education research).
|
|
13
|
+
|
|
14
|
+
## Agent memory and instruction following
|
|
15
|
+
|
|
16
|
+
| Source | Finding | Rules |
|
|
17
|
+
|---|---|---|
|
|
18
|
+
| Lost in the Middle, Liu et al., TACL 2023 — arxiv.org/abs/2307.03172 | U-shaped position curve; middle content under-used | 2 |
|
|
19
|
+
| Lost in Compaction (CompInt) — arxiv.org/html/2608.11242v1 | 17% constraint retention; extractor over 90% | 5 |
|
|
20
|
+
| Forget Freely, Grep Later (GrepMem) — arxiv.org/abs/2611.25123 | 95-97% vs 21% recall | 5 |
|
|
21
|
+
| How Many Instructions Can LLMs Follow at Once (IFScale) — arxiv.org/html/2507.11538v1 | 68% at 500 rules; early-instruction bias | 3, 6 |
|
|
22
|
+
| We Are What We Repeatedly Do (VerIFY) — aclanthology.org/2026.findings-eacl.254 | Verifiable criteria; up to 79% improvement | 3, 4 |
|
|
23
|
+
| Measuring and Controlling Instruction Instability — arxiv.org/html/2402.10962v2 | Dialogue instructions degrade with turns | 2, 4 |
|
|
24
|
+
| Multi-IF — arxiv.org/html/2410.15553 | Multi-turn instruction following is distinct | 2 |
|
|
25
|
+
| State Integrity Collapse — arxiv.org/html/2610.31314 | Agents can restate yet violate a rule | 3 |
|
|
26
|
+
| The Instruction Gap — arxiv.org/html/2601.03269v1 | Density and placement determine compliance | 2, 6 |
|
|
27
|
+
| MemGPT — arxiv.org/html/2310.08560v1 | Hierarchical memory architecture | 5 |
|
|
28
|
+
| A Survey of Agent Memory in the Second Half — arxiv.org/abs/2602.06052 | Memory taxonomy and open problems | 5 |
|
|
29
|
+
| Memory in the Age of AI Agents — arxiv.org/pdf/2512.13564v1 | Memory as a first-class research area | 5 |
|
|
30
|
+
| Memory for Autonomous LLM Agents — arxiv.org/html/2603.07670v1 | Mechanisms and evaluation | 5 |
|
|
31
|
+
| Rethinking Memory in LLM based Agents — arxiv.org/html/2505.00675 | Representation and operations | 5 |
|
|
32
|
+
| Agent Memory: Characterization and System Implications — arxiv.org/pdf/2606.06448v2 | Stateful workloads | 5 |
|
|
33
|
+
| Towards Long-Horizon Agents: A Survey — long-horizon-agents.github.io | Long-horizon failure modes | 5 |
|
|
34
|
+
| Quantifying Laziness, Decoding Suboptimality, Context Degradation — arxiv.org/pdf/2512.20662 | Degradation is measurable | 6 |
|
|
35
|
+
| Exploiting Primacy Effect — arxiv.org/html/2507.13949v1 | Placement bias is exploitable | 2 |
|
|
36
|
+
| LLM Position Bias — intuitionlabs.ai/articles/llm-position-bias-primacy-recency-effects | Primacy and recency in prompts | 2 |
|
|
37
|
+
| A Guide to Improving Long Context Instruction Following — scale.com/blog/long-context-instruction-following | Practitioner guidance on density and placement | 2, 3 |
|
|
38
|
+
| Why AI Agents Forget: The Stateless LLM Problem — atlan.com/know/why-ai-agents-forget/ | Statelessness as root cause | 5 |
|
|
39
|
+
|
|
40
|
+
## Psychology of retention
|
|
41
|
+
|
|
42
|
+
| Source | Finding | Rule |
|
|
43
|
+
|---|---|---|
|
|
44
|
+
| Spacing and retrieval — edresearch.edu.au/summaries-explainers/explainers/spacing-retrieval | Spacing prevents cognitive overload; retrieval strengthens memory | 4 |
|
|
45
|
+
| Using Spacing to Enhance Diverse Forms of Learning — pdf.retrievalpractice.org/spacing/Carpenter_etal_2012_EDPR.pdf | Spacing improves diverse learning forms | 4 |
|
|
46
|
+
| Spaced Retrieval Practice Imposes Desirable Difficulty — link.springer.com/article/10.1007/s10648-022-09677-2 | Desirable difficulty improves retention | 4 |
|
|
47
|
+
| Spacing Effect — thedecisionlab.com/biases/spacing-effect | Shortened as a general bias reference | 4 |
|
|
48
|
+
|
|
49
|
+
## Skill authoring
|
|
50
|
+
|
|
51
|
+
| Source | Finding | Rule |
|
|
52
|
+
|---|---|---|
|
|
53
|
+
| Skill authoring best practices — docs.anthropic.com/claude/docs/agents-and-tools/agent-skills/best-practices | Concision wins; metadata loads first; every token competes with context | 1, 6 |
|
|
54
|
+
| Equipping agents for the real world with Agent Skills — anthropic.com/engineering/equipping-agents-for-the-real-world-with-agent-skills | Skills are a first-class progressive-disclosure mechanism | 1 |
|
|
55
|
+
| skill-development SKILL.md — github.com/anthropics/claude-code/blob/main/plugins/plugin-dev/skills/skill-development/SKILL.md | Reference implementation for skill authoring | 1 |
|
|
56
|
+
|
|
57
|
+
## Positive framing and if-then planning
|
|
58
|
+
|
|
59
|
+
| Source | Finding | Rule |
|
|
60
|
+
|---|---|---|
|
|
61
|
+
| Gollwitzer, "Implementation Intentions: Strong Effects of Simple Plans" — doi.apa.org/doi/10.1037/0003-066x.54.7.493 | If-then plans specify when, where and how; strong effects on goal attainment | 7 |
|
|
62
|
+
| Wieber et al., "Promoting the translation of intentions into action" — pmc.ncbi.nlm.nih.gov/articles/PMC4500900/ | Situational cues become highly accessible and link directly to the planned response | 7 |
|
|
63
|
+
| Bieleke et al., "If-then planning" — tandfonline.com/doi/full/10.1080/10463283.2020.1808936 | Review of automatic action control by if-then plans | 7 |
|
|
64
|
+
| Adriaanse et al., "Planning what not to eat" — pubmed.ncbi.nlm.nih.gov/21177875/ | Negating an unwanted habit in an implementation plan can have ironic effects | 7 |
|
|
65
|
+
| "Implementation and recognition of novel negatively instructed stimulus-response rules" — pmc.ncbi.nlm.nih.gov/articles/PMC12664855/ | Negative instructions work better with an explicit alternative action and advance instruction-type information | 7 |
|
|
66
|
+
|
|
67
|
+
## Caveats
|
|
68
|
+
|
|
69
|
+
- These are reported results, not guarantees for every model or harness.
|
|
70
|
+
- Position and density effects are strongest in long contexts; short prompts need less defense.
|
|
71
|
+
- Restatement costs tokens; use it only at phase boundaries.
|
|
72
|
+
- External anchors require the agent to actually re-read them; the rule reduces reliance on recall but does not eliminate it.
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 no-ai-slop contributors
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|