@simpleapps-com/augur-skills 2026.3.9 → 2026.3.11
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/package.json
CHANGED
|
@@ -30,6 +30,9 @@ Dedicated tools are faster, require no permission, and produce better output. MU
|
|
|
30
30
|
|
|
31
31
|
Reserve Bash for commands that have no dedicated tool equivalent: build tools, test runners, git, package managers, and system commands.
|
|
32
32
|
|
|
33
|
+
These commands are **denied** in project settings and will always be rejected — do not attempt them:
|
|
34
|
+
`cd`, `cat`, `grep`, `rg`, `find`, `sed`, `awk`, `head`, `tail`, `sleep`, `kill`, `pkill`
|
|
35
|
+
|
|
33
36
|
## Check Before Prompting
|
|
34
37
|
|
|
35
38
|
Before running a command that will trigger a permission prompt, check the wiki and project settings for approved commands. The wiki documents which commands are pre-approved and how to invoke them. Unnecessary permission prompts interrupt the user's flow.
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: context-efficiency
|
|
3
|
+
description: How to write token-efficient CLAUDE.md, rules, and skills. Use when creating or editing always-loaded content (CLAUDE.md, .claude/rules/) or authoring skills. Covers the context loading hierarchy, evergreen content principles, and platform limits.
|
|
4
|
+
user-invocable: false
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Context Efficiency
|
|
8
|
+
|
|
9
|
+
Always-loaded content (CLAUDE.md, rules without `paths`) is paid on every prompt — even when irrelevant. Every token spent here is a token taken from working context. Write always-loaded content as pointers, not content.
|
|
10
|
+
|
|
11
|
+
## Context Loading Hierarchy
|
|
12
|
+
|
|
13
|
+
| Layer | When loaded | What belongs here |
|
|
14
|
+
|-------|------------|-------------------|
|
|
15
|
+
| CLAUDE.md | Every prompt | Orient + link. Under 200 lines (official limit). |
|
|
16
|
+
| Rules (no `paths`) | Every prompt | Short guardrails. One topic per file. Invoke a skill for detail. |
|
|
17
|
+
| Rules (with `paths`) | On demand | Scoped guidance that only matters for specific file types. |
|
|
18
|
+
| Skills (descriptions) | Every prompt | One-line descriptions. 2% of context window for ALL combined. |
|
|
19
|
+
| Skills (full content) | When invoked | Full behavioral detail. Under 500 lines per skill. |
|
|
20
|
+
| Wiki | When read | Complete project knowledge. Unlimited but we budget 20K tokens. |
|
|
21
|
+
|
|
22
|
+
## Platform Limits
|
|
23
|
+
|
|
24
|
+
- **CLAUDE.md**: under 200 lines. "Bloated files cause Claude to ignore your actual instructions."
|
|
25
|
+
- **Skill descriptions**: 2% of context window for all skills combined (16K char fallback). Override with `SLASH_COMMAND_TOOL_CHAR_BUDGET`.
|
|
26
|
+
- **SKILL.md**: under 500 lines. Move detail to supporting files.
|
|
27
|
+
- **Auto memory**: first 200 lines of MEMORY.md loaded. Topic files on demand.
|
|
28
|
+
- **Overhead**: ~31% of a 200K context window is consumed by system prompt, tools, and autocompact buffer before you type anything.
|
|
29
|
+
|
|
30
|
+
## Evergreen Content
|
|
31
|
+
|
|
32
|
+
Always-loaded content MUST be evergreen — true regardless of when it's read. MUST NOT contain:
|
|
33
|
+
|
|
34
|
+
- **File counts or lists** — "12 skills" becomes wrong the next commit. Say "check `ls plugins/simpleapps/skills/`" instead.
|
|
35
|
+
- **Version numbers** — "currently v2026.03.8" is stale immediately. Point to the VERSION file.
|
|
36
|
+
- **Process data** — timestamps, recent activity, who did what. That's git history.
|
|
37
|
+
- **Hardcoded paths** that change across machines or environments.
|
|
38
|
+
- **Content that duplicates the code** — the code is the source of truth. Describe the pattern, link to the file.
|
|
39
|
+
|
|
40
|
+
Instead: describe the **pattern**, give **1-2 examples**, and **link** to the source for the current state.
|
|
41
|
+
|
|
42
|
+
## The Pointer Pattern
|
|
43
|
+
|
|
44
|
+
Always-loaded files SHOULD be pointers that invoke on-demand content:
|
|
45
|
+
|
|
46
|
+
```markdown
|
|
47
|
+
# Git Safety (rule — 3 lines, always loaded)
|
|
48
|
+
MUST NOT commit without user approval.
|
|
49
|
+
Load Skill("git-safety") for full guardrails.
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
The rule costs ~40 tokens per prompt. The skill costs nothing until invoked, then loads ~800 tokens of detailed guidance. This is 20x more efficient than putting the full content in the rule.
|
|
53
|
+
|
|
54
|
+
## When to Use Each Layer
|
|
55
|
+
|
|
56
|
+
| Question | Answer |
|
|
57
|
+
|----------|--------|
|
|
58
|
+
| Does the agent need this on EVERY prompt? | CLAUDE.md or rule |
|
|
59
|
+
| Is it a critical guardrail? | Rule (invokes skill for detail) |
|
|
60
|
+
| Is it only relevant for certain files? | Rule with `paths` frontmatter |
|
|
61
|
+
| Is it detailed behavioral guidance? | Skill |
|
|
62
|
+
| Is it shared knowledge across projects? | Wiki |
|
|
63
|
+
| Is it personal to one user? | Memory |
|
|
64
|
+
|
|
65
|
+
## Checking Your Budget
|
|
66
|
+
|
|
67
|
+
Run `/context` to see current token usage by category. Watch for:
|
|
68
|
+
- Skills being excluded (descriptions exceeded 2% budget)
|
|
69
|
+
- CLAUDE.md consuming more than ~5% of context
|
|
70
|
+
- Many MCP servers inflating tool definitions
|
|
@@ -73,6 +73,21 @@ Pages MUST link to related sections on other pages using `[[Page-Name#section]]`
|
|
|
73
73
|
|
|
74
74
|
Cross-linking also eliminates duplication. If two pages explain the same concept, one MUST become the source of truth and the other MUST link to it. Never duplicate content across pages — link instead. This keeps the wiki lean and ensures updates happen in one place.
|
|
75
75
|
|
|
76
|
+
## Wiki Over Memory
|
|
77
|
+
|
|
78
|
+
When asked to save, document, or record knowledge — use the wiki, MUST NOT use memory. The wiki is shared across all agents, all projects, and all computers. Memory is personal to one user on one machine — invisible to everyone else.
|
|
79
|
+
|
|
80
|
+
| Knowledge type | Where it belongs |
|
|
81
|
+
|---------------|-----------------|
|
|
82
|
+
| Conventions, patterns, decisions | **Wiki** |
|
|
83
|
+
| Learnings from a task or session | **Wiki** |
|
|
84
|
+
| Architecture and process docs | **Wiki** |
|
|
85
|
+
| How a problem was solved | **Wiki** |
|
|
86
|
+
| Personal preferences (writing style, response length) | Memory |
|
|
87
|
+
| User role and background | Memory |
|
|
88
|
+
|
|
89
|
+
If in doubt, it belongs in the wiki. The cost of putting shared knowledge in memory is that it dies with the session — no other agent, project, or computer will ever see it.
|
|
90
|
+
|
|
76
91
|
## Keep It Lean
|
|
77
92
|
|
|
78
93
|
- Document patterns and principles, not exhaustive lists
|