@simpleapps-com/augur-skills 2026.3.19 → 2026.3.22
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 +1 -1
- package/skills/simpleapps/augur-packages/SKILL.md +36 -12
- package/skills/simpleapps/context-efficiency/SKILL.md +4 -0
- package/skills/simpleapps/deployment/SKILL.md +2 -1
- package/skills/simpleapps/git-safety/SKILL.md +36 -3
- package/skills/simpleapps/github/SKILL.md +2 -0
- package/skills/simpleapps/wiki/SKILL.md +1 -1
- package/skills/simpleapps/writing-style/SKILL.md +8 -0
package/package.json
CHANGED
|
@@ -13,18 +13,18 @@ Shared npm packages for Next.js ecommerce sites and React Native apps. Published
|
|
|
13
13
|
|
|
14
14
|
Before writing custom code, check whether a package export already solves the problem.
|
|
15
15
|
|
|
16
|
-
## Ground Truth: Read the
|
|
16
|
+
## Ground Truth: Read the Docs
|
|
17
17
|
|
|
18
18
|
This skill is a **stub, not an archive**. New packages are created, existing packages gain features, APIs evolve. This skill MUST NOT be treated as the complete picture.
|
|
19
19
|
|
|
20
|
-
**Always read the installed packages in
|
|
20
|
+
**Always read the installed packages' documentation in `node_modules/`:**
|
|
21
21
|
|
|
22
22
|
1. Use `Glob("repo/node_modules/@simpleapps-com/*")` to discover ALL available packages — there may be packages not listed here
|
|
23
|
-
2. Read `repo/node_modules/@simpleapps-com/<package>/
|
|
24
|
-
3. Read
|
|
25
|
-
4.
|
|
23
|
+
2. Read `repo/node_modules/@simpleapps-com/<package>/llms.txt` — machine-readable, lists every export with descriptions and usage examples. This is the fastest path to discovering what exists.
|
|
24
|
+
3. Read `repo/node_modules/@simpleapps-com/<package>/README.md` for full API docs, code examples, and "Replaces" guidance
|
|
25
|
+
4. MUST NOT read `dist/`, `.d.ts`, or compiled JS files to discover capabilities — they are minified, chunked, and incomplete. The README and llms.txt are the source of truth.
|
|
26
26
|
|
|
27
|
-
When this skill and the installed
|
|
27
|
+
When this skill and the installed docs disagree, **the installed docs win**. This skill exists to point you in the right direction, not to replace reading the docs.
|
|
28
28
|
|
|
29
29
|
## Known Packages
|
|
30
30
|
|
|
@@ -40,13 +40,37 @@ These are starting hints — not a complete list. Always check `node_modules/@si
|
|
|
40
40
|
|
|
41
41
|
## How to Check for Package Solutions
|
|
42
42
|
|
|
43
|
-
|
|
43
|
+
MUST follow this procedure before writing custom code or filing a package issue:
|
|
44
44
|
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
45
|
+
### Step 1: Read llms.txt
|
|
46
|
+
|
|
47
|
+
For each installed `@simpleapps-com/augur-*` package, read its `llms.txt`:
|
|
48
|
+
```
|
|
49
|
+
Read("repo/node_modules/@simpleapps-com/<package>/llms.txt")
|
|
50
|
+
```
|
|
51
|
+
This lists every export with descriptions and usage examples.
|
|
52
|
+
|
|
53
|
+
### Step 2: Read README.md for details
|
|
54
|
+
|
|
55
|
+
If llms.txt shows a relevant export, read the README for full API, code examples, and "Replaces" guidance showing what site code it eliminates.
|
|
56
|
+
|
|
57
|
+
### Step 3: MUST NOT grep compiled output
|
|
58
|
+
|
|
59
|
+
MUST NOT read or grep `dist/`, `.d.ts`, `.js`, or any compiled files to discover package capabilities. These are minified build artifacts — unreliable for discovery. The README and llms.txt are the ONLY source of truth.
|
|
60
|
+
|
|
61
|
+
### Step 4: Before filing a package issue
|
|
62
|
+
|
|
63
|
+
Before creating an issue on `simpleapps-com/augur-packages` requesting a new feature:
|
|
64
|
+
1. Search ALL package llms.txt files for the function/hook name
|
|
65
|
+
2. Search ALL package README.md files for the concept
|
|
66
|
+
3. If found, the problem is site adoption — not a package gap. Use the existing export.
|
|
67
|
+
|
|
68
|
+
### Step 5: Before writing custom code
|
|
69
|
+
|
|
70
|
+
Before creating a custom hook, utility, or action in a site:
|
|
71
|
+
1. Search ALL package llms.txt files for similar functionality
|
|
72
|
+
2. Check the augur-hooks README "Examples" section for the pattern
|
|
73
|
+
3. If a package export exists, use it. If it does not work as expected, file a bug on the package — not a reimplementation in the site.
|
|
50
74
|
|
|
51
75
|
## What Stays Site-Specific
|
|
52
76
|
|
|
@@ -51,6 +51,10 @@ Load Skill("git-safety") for full guardrails.
|
|
|
51
51
|
|
|
52
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
53
|
|
|
54
|
+
### Wiki Links: Highest-ROI Pointer
|
|
55
|
+
|
|
56
|
+
The cheapest pointer with the biggest payoff is a **wiki link in CLAUDE.md**. A link like `[Deployment](../../wiki/Deployment.md)` costs ~15 tokens but gives the agent instant access to a full page of detailed knowledge (~500-2000 tokens) on demand. CLAUDE.md SHOULD link to every wiki content page — it becomes the agent's table of contents. Missing a link means the agent must guess where to find information or ask the user.
|
|
57
|
+
|
|
54
58
|
## When to Use Each Layer
|
|
55
59
|
|
|
56
60
|
| Question | Answer |
|
|
@@ -44,8 +44,9 @@ Not all projects need all three. Client sites may only have Submit and Deploy. P
|
|
|
44
44
|
|
|
45
45
|
## Guard Rails
|
|
46
46
|
|
|
47
|
+
- **If `wiki/Deployment.md` does not exist, STOP IMMEDIATELY.** Do not guess, do not improvise, do not infer steps from the codebase. Tell the user to run `/curate-wiki` to generate it. Then do nothing else.
|
|
48
|
+
- **If the relevant section (Submit, Deploy, or Publish) is missing from the page, STOP IMMEDIATELY.** Same rule — do not guess the steps.
|
|
47
49
|
- MUST NOT guess deployment steps — only execute what the wiki defines
|
|
48
|
-
- MUST NOT operate if the Deployment page is missing or the relevant section is absent
|
|
49
50
|
- MUST load git-safety — every git write operation requires user approval
|
|
50
51
|
- `/publish` MUST complete the verification gate before executing (see below)
|
|
51
52
|
|
|
@@ -6,10 +6,43 @@ user-invocable: false
|
|
|
6
6
|
|
|
7
7
|
# Git Safety
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
## The Rule
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
MUST NOT run any git write operation unless the user explicitly approves it. Git write operations include: `commit`, `push`, `tag`, `merge`, `rebase`, `reset`, `cherry-pick`, `stash`, `branch -D`, and any `gh` command that creates or modifies PRs, issues, or releases.
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
`git add` (staging) is permitted as part of preparing to show the user what will be committed — but the commit itself requires approval.
|
|
14
|
+
|
|
15
|
+
No skill, command, or workflow overrides this rule. Even instructions like "complete all steps without stopping" do not bypass it. This applies to ALL repos — the main repo, the wiki repo, and any other git repo.
|
|
16
|
+
|
|
17
|
+
## Why
|
|
14
18
|
|
|
15
19
|
Every git push, every PR, every wiki edit that hits GitHub is done under the user's credentials — their name, their reputation. The user is responsible for every action taken on their behalf. That is why they decide when to commit, not the agent.
|
|
20
|
+
|
|
21
|
+
## How Approval Works
|
|
22
|
+
|
|
23
|
+
The user gives approval in one of two ways:
|
|
24
|
+
|
|
25
|
+
1. **Direct instruction** — the user says "commit", "push", "tag", or equivalent
|
|
26
|
+
2. **Shipping commands** — the user invokes `/submit`, `/deploy`, or `/publish`. Invoking the command IS the approval for the git operations defined in that command's workflow.
|
|
27
|
+
|
|
28
|
+
### Approval is scoped, not blanket
|
|
29
|
+
|
|
30
|
+
Each approval covers ONE specific operation. Examples:
|
|
31
|
+
|
|
32
|
+
- The user says "commit" → you may commit the current staged changes. You may NOT also push.
|
|
33
|
+
- The user runs `/submit` → you may execute the Submit steps (commit + push or PR). You may NOT also tag or publish.
|
|
34
|
+
- The user runs `/publish` → you may execute the Publish steps (bump, commit, tag, push). This does NOT carry forward to future commits.
|
|
35
|
+
|
|
36
|
+
Previous approvals do NOT grant future permissions. If the user approved a commit earlier in the session, that does not mean you can commit again later without asking.
|
|
37
|
+
|
|
38
|
+
### When /submit follows earlier work
|
|
39
|
+
|
|
40
|
+
If you made changes and the user then runs `/submit`, the command starts fresh — it reads the Deployment page and follows those steps. There is no conflict with earlier work. The user chose to invoke `/submit` at this moment, and that is all the approval needed for the operations within it.
|
|
41
|
+
|
|
42
|
+
Do NOT ask for redundant confirmation inside `/submit` if the user just invoked it. The invocation is the approval. But each discrete git operation within the flow (commit, then push) should still be reported before execution.
|
|
43
|
+
|
|
44
|
+
## The Pattern
|
|
45
|
+
|
|
46
|
+
**Do the work → report results → wait.**
|
|
47
|
+
|
|
48
|
+
After making changes: report what was done, then stop. Do not ask "want me to commit?" or "should I push?" — that wastes tokens. Just report and wait silently. The user will say "commit", "push", or run a shipping command when ready.
|
|
@@ -107,6 +107,8 @@ Before adding a comment to a closed issue, check its state first with `gh issue
|
|
|
107
107
|
|
|
108
108
|
## Cross-Repo Issues
|
|
109
109
|
|
|
110
|
+
Use `/file-issue` to automate this process — it creates the upstream issue, cross-links back to the local issue, and adds the `blocked` label. `/triage` surfaces blocked issues in its output.
|
|
111
|
+
|
|
110
112
|
When a project hits a blocker that depends on another team's repo, create two issues and keep working:
|
|
111
113
|
|
|
112
114
|
1. **Local issue** (in the site/project repo) — describe the impact and what's blocked
|
|
@@ -22,7 +22,7 @@ Check size: `wc -w wiki/*.md` (multiply by ~1.3 for token estimate)
|
|
|
22
22
|
|
|
23
23
|
## Core Principle
|
|
24
24
|
|
|
25
|
-
Repo files (`.claude/CLAUDE.md`, `.claude/rules/`, `README.md`) MUST be minimal — orient then point to wiki. AI agents read wiki pages as local files via `Read wiki/<page>.md`. No network requests needed.
|
|
25
|
+
Repo files (`.claude/CLAUDE.md`, `.claude/rules/`, `README.md`) MUST be minimal — orient then point to wiki. CLAUDE.md MUST link to every wiki content page — these links cost ~15 tokens total but make every page one Read away from always-loaded context. AI agents read wiki pages as local files via `Read wiki/<page>.md`. No network requests needed.
|
|
26
26
|
|
|
27
27
|
```
|
|
28
28
|
Wiki defines → Code implements → Learnings update wiki → Repeat
|
|
@@ -60,6 +60,14 @@ Every token costs time, money, and cognitive load. Be concise without losing cla
|
|
|
60
60
|
|
|
61
61
|
Default to brief. Expand only when the reader cannot infer meaning from context. Two sentences that answer the question beat two pages that fill the context window.
|
|
62
62
|
|
|
63
|
+
## Code Style
|
|
64
|
+
|
|
65
|
+
Use descriptive variable and function names. Abbreviations save keystrokes but cost readability — the human reviewing your output MUST be able to understand the code without deciphering names.
|
|
66
|
+
|
|
67
|
+
- MUST use full words: `$groupQuantity` not `$gq`, `cartItem` not `ci`
|
|
68
|
+
- Loop counters (`i`, `j`, `k`) and well-known abbreviations (`id`, `url`, `db`) are fine
|
|
69
|
+
- Function names SHOULD describe what they do: `calculateShippingCost` not `calcShip`
|
|
70
|
+
|
|
63
71
|
## Claude Code Keywords
|
|
64
72
|
|
|
65
73
|
Thinking trigger words (`think`, `think hard`, `ultrathink`) are deprecated. Extended thinking is on by default. Use `/effort` (low/medium/high/max) for control.
|