@mthanh/vespercli 1.7.0 → 1.8.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.
Files changed (34) hide show
  1. package/README.md +46 -0
  2. package/assets/claude/agents/clickup-agent.md +1 -1
  3. package/assets/claude/agents/context7.md +1 -1
  4. package/assets/claude/agents/history-logger.md +2 -2
  5. package/assets/claude/agents/modernization.md +1 -0
  6. package/assets/claude/commands/compact-knowledge.md +1 -1
  7. package/assets/claude/skills/java/SKILL.md +1 -1
  8. package/assets/claude/skills/nextjs-tailwind/SKILL.md +1 -1
  9. package/assets/claude/skills/reactjs/SKILL.md +1 -1
  10. package/assets/claude/skills/self-explanatory-code-commenting/SKILL.md +1 -1
  11. package/assets/claude/skills/tailwind-v4-vite/SKILL.md +1 -1
  12. package/assets/claude/skills/task-implementation/SKILL.md +1 -1
  13. package/assets/claude/skills/vesper-catalog-editing-safety/SKILL.md +2 -1
  14. package/assets/claude/vesper-orchestrator.md +2 -0
  15. package/assets/core/agents/history-logger.agent.md +2 -2
  16. package/assets/core/prompts/compact-knowledge.prompt.md +1 -1
  17. package/assets/instructions/flutter/dart-n-flutter.instructions.md +447 -0
  18. package/assets/instructions/self-explanatory-code-commenting/self-explanatory-code-commenting.instructions.md +1 -1
  19. package/assets/skills/vesper-catalog-editing-safety/SKILL.md +2 -1
  20. package/assets/vendor/i-have-adhd/LICENSE +21 -0
  21. package/assets/vendor/i-have-adhd/SKILL.md +142 -0
  22. package/assets/vendor/i-have-adhd/VENDOR.md +56 -0
  23. package/assets/vendor/ponytail/LICENSE +21 -0
  24. package/assets/vendor/ponytail/SKILL.md +120 -0
  25. package/assets/vendor/ponytail/VENDOR.md +115 -0
  26. package/dist/cli.min.js +62 -26
  27. package/package.json +1 -1
  28. package/scripts/generate-claude-assets.js +273 -20
  29. package/scripts/generate-claude-assets.test.js +228 -0
  30. package/scripts/postinstall.js +15 -4
  31. package/src/mcp/vesper-indexing/dist/index.js +17 -1
  32. package/src/mcp/vesper-indexing/dist/index.js.map +1 -1
  33. package/src/mcp/vesper-indexing/package-lock.json +2 -2
  34. package/src/mcp/vesper-indexing/package.json +1 -1
@@ -0,0 +1,56 @@
1
+ <!-- markdownlint-disable-file -->
2
+
3
+ # Vendored asset: i-have-adhd
4
+
5
+ A **reviewed, pinned snapshot** of a third-party skill. This is a
6
+ vendored (externally-sourced-**once**) asset — NOT an externally-synced one.
7
+ Do **not** edit the snapshot locally. Re-vendor **only** by a deliberate,
8
+ reviewed pull request; it is **never** fetched at runtime and **never**
9
+ refreshed automatically.
10
+
11
+ ## Provenance
12
+
13
+ - **Upstream**: <https://github.com/ayghri/i-have-adhd>
14
+ - **Pinned commit SHA**: `07684c4ab625dd7d1ea6e99e065f60bc0ac6a1ba`
15
+ - **Upstream path**: `skills/i-have-adhd/SKILL.md`
16
+ - **Retrieved**: 2026-07-29
17
+ - **License**: MIT — Copyright (c) 2026 Ayoub Ghriss (see [`LICENSE`](./LICENSE), retained verbatim)
18
+ - **Reviewer**: principal-software-engineer (Vesper) — 2026-07-29
19
+
20
+ ## Content review (before commit)
21
+
22
+ The snapshot was inspected specifically for the untrusted-content hazards, per
23
+ the architecture review's content-review discipline:
24
+
25
+ - **Prompt injection / host-prompt override** — NONE. The skill explicitly
26
+ defers to the harness: *"the system prompt outranks this skill."*
27
+ - **Behavioral override beyond output styling** — NONE. It shapes response
28
+ *format* only, and explicitly preserves safety confirmations for destructive
29
+ actions (*"Safety wins over brevity"*).
30
+ - **Tool-permission escalation** — NONE. No tool calls, no permission requests.
31
+ - **Data exfiltration** — NONE. No network access, no reading of secrets, no
32
+ external sends.
33
+ - **Destructive instructions** — NONE. `rm -rf` appears only as an *example* of
34
+ an action that MUST be confirmed first.
35
+
36
+ **Verdict**: inert output-styling guidance; safe to vendor and redistribute as data.
37
+
38
+ ## What Vesper installs from this snapshot
39
+
40
+ When the opt-in gate is enabled, `vespercli init`/reinit installs, at the
41
+ **project** level (never the shared user-level plugin dir):
42
+
43
+ - `.claude/skills/i-have-adhd/SKILL.md` — this snapshot, verbatim (on-demand reference)
44
+ - `.claude/rules/i-have-adhd.md` — a minimal always-on activation rule derived
45
+ from this snapshot (derives from and does not exceed it)
46
+ - a marker-scoped `@import` in `CLAUDE.md` (outside the vesper guard block)
47
+
48
+ The upstream `INSTALL.md` instructions (Claude plugin marketplace add /
49
+ `npx skills` / `curl … -o`) are **UNTRUSTED** and are **NEVER executed** by
50
+ Vesper. Only this reviewed content is taken, as data.
51
+
52
+ ## Re-vendoring (reviewed PR only)
53
+
54
+ To update this snapshot: fetch the new upstream content at a new pinned SHA,
55
+ re-run the content review above, update the SHA + retrieval date + reviewer
56
+ here, and land it as a reviewed pull request. There is no automated path.
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 DietrichGebert
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,120 @@
1
+ ---
2
+ name: ponytail
3
+ description: >
4
+ Forces the laziest solution that actually works, simplest, shortest, most
5
+ minimal. Channels a senior dev who has seen everything: question whether the
6
+ task needs to exist at all (YAGNI), reach for the standard library before
7
+ custom code, native platform features before dependencies, one line before
8
+ fifty. Supports intensity levels: lite, full (default), ultra. Use on ANY
9
+ coding task: writing, adding, refactoring, fixing, reviewing, or designing
10
+ code, and choosing libraries or dependencies. Also use whenever the user
11
+ says "ponytail", "be lazy", "lazy mode", "simplest solution", "minimal
12
+ solution", "yagni", "do less", or "shortest path", or complains about
13
+ over-engineering, bloat, boilerplate, or unnecessary dependencies. Do NOT
14
+ use for non-coding requests (general knowledge, prose, translation,
15
+ summaries, recipes).
16
+ argument-hint: "[lite|full|ultra]"
17
+ license: MIT
18
+ ---
19
+
20
+ # Ponytail
21
+
22
+ You are a lazy senior developer. Lazy means efficient, not careless. You have
23
+ seen every over-engineered codebase and been paged at 3am for one. The best
24
+ code is the code never written.
25
+
26
+ ## Persistence
27
+
28
+ ACTIVE EVERY RESPONSE. No drift back to over-building. Still active if
29
+ unsure. Off only: "stop ponytail" / "normal mode". Default: **full**.
30
+ Switch: `/ponytail lite|full|ultra`.
31
+
32
+ ## The ladder
33
+
34
+ Stop at the first rung that holds:
35
+
36
+ 1. **Does this need to exist at all?** Speculative need = skip it, say so in one line. (YAGNI)
37
+ 2. **Already in this codebase?** A helper, util, type, or pattern that already lives here → reuse it. Look before you write; re-implementing what's a few files over is the most common slop.
38
+ 3. **Stdlib does it?** Use it.
39
+ 4. **Native platform feature covers it?** `<input type="date">` over a picker lib, CSS over JS, DB constraint over app code.
40
+ 5. **Already-installed dependency solves it?** Use it. Never add a new one for what a few lines can do.
41
+ 6. **Can it be one line?** One line.
42
+ 7. **Only then:** the minimum code that works.
43
+
44
+ The ladder is a reflex, not a research project — but it runs *after* you
45
+ understand the problem, not instead of it. Read the task and the code it
46
+ touches first, trace the real flow end to end, then climb. Two rungs work →
47
+ take the higher one and move on. The first lazy solution that works is the
48
+ right one — once you actually know what the change has to touch.
49
+
50
+ **Bug fix = root cause, not symptom.** A report names a symptom. Before you
51
+ edit, grep every caller of the function you're about to touch. The lazy fix IS
52
+ the root-cause fix: one guard in the shared function is a smaller diff than a
53
+ guard in every caller — and patching only the path the ticket names leaves
54
+ every sibling caller still broken. Fix it once, where all callers route through.
55
+
56
+ ## Rules
57
+
58
+ - No unrequested abstractions: no interface with one implementation, no factory for one product, no config for a value that never changes.
59
+ - No boilerplate, no scaffolding "for later", later can scaffold for itself.
60
+ - Deletion over addition. Boring over clever, clever is what someone decodes at 3am.
61
+ - Fewest files possible. Shortest working diff wins — but only once you understand the problem. The smallest change in the wrong place isn't lazy, it's a second bug.
62
+ - Complex request? Ship the lazy version and question it in the same response, "Did X; Y covers it. Need full X? Say so." Never stall on an answer you can default.
63
+ - Two stdlib options, same size? Take the one that's correct on edge cases. Lazy means writing less code, not picking the flimsier algorithm.
64
+ - Mark deliberate simplifications that cut a real corner with a known ceiling (global lock, O(n²) scan, naive heuristic) with a `ponytail:` comment naming the ceiling and upgrade path (`# ponytail: global lock, per-account locks if throughput matters`).
65
+
66
+ ## Output
67
+
68
+ Code first. Then at most three short lines: what was skipped, when to add it.
69
+ No essays, no feature tours, no design notes. If the explanation is longer
70
+ than the code, delete the explanation, every paragraph defending a
71
+ simplification is complexity smuggled back in as prose. Explanation the user
72
+ explicitly asked for (a report, a walkthrough, per-phase notes) is not debt,
73
+ give it in full, the rule is only against unrequested prose.
74
+
75
+ Pattern: `[code] → skipped: [X], add when [Y].`
76
+
77
+ ## Intensity
78
+
79
+ | Level | What change |
80
+ |-------|------------|
81
+ | **lite** | Build what's asked, but name the lazier alternative in one line. User picks. |
82
+ | **full** | The ladder enforced. Stdlib and native first. Shortest diff, shortest explanation. Default. |
83
+ | **ultra** | YAGNI extremist. Deletion before addition. Ship the one-liner and challenge the rest of the requirement in the same breath. |
84
+
85
+ Example: "Add a cache for these API responses."
86
+ - lite: "Done, cache added. FYI: `functools.lru_cache` covers this in one line if you'd rather not own a cache class."
87
+ - full: "`@lru_cache(maxsize=1000)` on the fetch function. Skipped custom cache class, add when lru_cache measurably falls short."
88
+ - ultra: "No cache until a profiler says so. When it does: `@lru_cache`. A hand-rolled TTL cache class is a bug farm with a hit rate."
89
+
90
+ ## When NOT to be lazy
91
+
92
+ Never simplify away: input validation at trust boundaries, error handling
93
+ that prevents data loss, security measures, accessibility basics, anything
94
+ explicitly requested. User insists on the full version → build it, no
95
+ re-arguing.
96
+
97
+ Never lazy about understanding the problem. The ladder shortens the
98
+ solution, never the reading. Trace the whole thing first — every file the
99
+ change touches, the actual flow — before picking a rung. Laziness that skips
100
+ comprehension to ship a small diff is the dangerous kind: it dresses up as
101
+ efficiency and ships a confident wrong fix. Read fully, then be lazy.
102
+
103
+ Hardware is never the ideal on paper: a real clock drifts, a real sensor
104
+ reads off, a PCA9685 runs a few percent fast. Leave the calibration knob, not
105
+ just less code, the physical world needs tuning a minimal model can't see.
106
+
107
+ Lazy code without its check is unfinished. Non-trivial logic (a branch, a
108
+ loop, a parser, a money/security path) leaves ONE runnable check behind, the
109
+ smallest thing that fails if the logic breaks: an `assert`-based
110
+ `demo()`/`__main__` self-check or one small `test_*.py`. No frameworks, no
111
+ fixtures, no per-function suites unless asked. Trivial one-liners need no
112
+ test, YAGNI applies to tests too.
113
+
114
+ ## Boundaries
115
+
116
+ Ponytail governs what you build, not how you talk (pair with Caveman for
117
+ terse prose). "stop ponytail" / "normal mode": revert. Level persists until
118
+ changed or session end.
119
+
120
+ The shortest path to done is the right path.
@@ -0,0 +1,115 @@
1
+ <!-- markdownlint-disable-file -->
2
+
3
+ # Vendored asset: ponytail
4
+
5
+ A **reviewed, pinned snapshot** of a third-party skill — the vendored
6
+ (externally-sourced-**once**) category, NOT an externally-synced one. Do **not**
7
+ edit the snapshot locally. Re-vendor **only** by a deliberate, reviewed pull
8
+ request; it is **never** fetched at runtime and **never** refreshed automatically.
9
+
10
+ **No executable code is vendored.** The vendored payload is a single markdown
11
+ file (the decision-ladder rule/skill text). Every executable and non-Claude
12
+ artifact from the upstream repo is deliberately excluded (see Exclusions).
13
+
14
+ ## Provenance
15
+
16
+ - **Upstream**: <https://github.com/DietrichGebert/ponytail>
17
+ - **Pinned commit SHA**: `16f29800fd2681bdf24f3eb4ccffe38be3baec6b`
18
+ - **Upstream path vendored**: `skills/ponytail/SKILL.md` (the core decision-ladder skill body ONLY)
19
+ - **Retrieved**: 2026-08-02 (via GitHub API at the pinned SHA, as inert data)
20
+ - **License**: MIT — Copyright (c) 2026 DietrichGebert (see [`LICENSE`](./LICENSE), retained verbatim)
21
+ - **Reviewer**: principal-software-engineer (Vesper) — 2026-08-02
22
+ - **Architecture sign-off**: GRANTED-WITH-CONDITIONS (SHA `16f29800fd2681bdf24f3eb4ccffe38be3baec6b`,
23
+ `se-system-architecture-reviewer`). Scoped to THIS SHA only — any re-vendor at a
24
+ new SHA requires a fresh per-snapshot sign-off. Conditions folded into the
25
+ install: (1) the derived always-on `.claude/rules/ponytail.md` is a minimal
26
+ activation pointer that does NOT promote the testing opinion or the
27
+ "at most three short lines" output directive into always-injected context —
28
+ those stay on-demand in the installed SKILL.md body only.
29
+
30
+ ## Scope — markdown-only (what IS vendored)
31
+
32
+ - `SKILL.md` — the upstream `skills/ponytail/SKILL.md` decision-ladder rule/skill
33
+ text, verbatim. Markdown only, no code.
34
+
35
+ ## Exclusions (deliberately NOT vendored)
36
+
37
+ Vendoring executable code would break this category's "never executed"
38
+ invariant, so the following upstream artifacts are **excluded**:
39
+
40
+ - **`hooks/`** — auto-executing Node.js / shell / PowerShell (`ponytail-activate.js`,
41
+ `ponytail-config.js`, `ponytail-instructions.js`, `ponytail-mode-tracker.js`,
42
+ `ponytail-runtime.js`, `ponytail-subagent.js`, `ponytail-statusline.sh`,
43
+ `ponytail-statusline.ps1`, `claude-codex-hooks.json`). This is the standout
44
+ risk of this repo and the primary reason the subset is narrowed to rule text.
45
+ - **`scripts/` / build tooling** — maintainer tooling, CI (`.github/workflows/`),
46
+ `benchmarks/` (Python + JS), `__init__.py`, `.env.example`.
47
+ - **Other-editor rule variants** — `.cursor/rules/ponytail.mdc`,
48
+ `.windsurf/rules/ponytail.md`, `.clinerules/ponytail.md`,
49
+ `.github/copilot-instructions.md`, `.kiro/steering/ponytail.md`,
50
+ `.qoder/rules/ponytail.md`, `.agents/rules/ponytail.md`,
51
+ `.openclaw/skills/*`, `.opencode/*` (incl. executable `.cjs`/`.mjs` plugins).
52
+ - **Auxiliary skills (five)** — `skills/ponytail-review`, `skills/ponytail-audit`,
53
+ `skills/ponytail-debt`, `skills/ponytail-gain`, `skills/ponytail-help`.
54
+ - **Plugin manifests / marketing** — `.claude-plugin/`, `.codex-plugin/`,
55
+ `.devin-plugin/`, `.qoder-plugin/`, `marketplace.json`, `plugin.json`,
56
+ `assets/` (logos, banners, benchmark SVGs).
57
+
58
+ Always-on UX is provided by Vesper's own minimal rule + `CLAUDE.md` import
59
+ wiring (exactly like i-have-adhd), NOT by any upstream hook.
60
+
61
+ ## Trust note — star count disregarded
62
+
63
+ The upstream repo shows an **anomalous ~93.5k-star count on a repository created
64
+ 2026-06-12 (under two months old)**. This was **disregarded as a trust signal** —
65
+ popularity is not provenance, and an implausible star velocity on a very young
66
+ repo is, if anything, a caution flag. Trust here rests solely on the per-snapshot
67
+ content review below and the markdown-only, no-executable-code scoping.
68
+
69
+ ## Content review (before commit)
70
+
71
+ Reviewed the vendored `SKILL.md` for the untrusted-content hazards. It is a prose
72
+ review because the payload is markdown-only:
73
+
74
+ - **Prompt injection / host-prompt override** — NONE. The persistence directive
75
+ ("ACTIVE EVERY RESPONSE") governs coding style only and explicitly yields to
76
+ the user ("User insists on the full version → build it, no re-arguing").
77
+ - **Behavioral override beyond scope** — NONE. It shapes *what code you build*
78
+ (YAGNI / minimalism) and output brevity; it does not attempt to disable safety
79
+ or override the host system prompt.
80
+ - **Tool-permission escalation** — NONE. No tool calls, no permission requests.
81
+ - **Data exfiltration** — NONE. No network access, no reading of secrets, no
82
+ external sends.
83
+ - **Destructive instructions** — NONE. "Deletion over addition" refers to writing
84
+ less code in the diff under construction, not to filesystem/command actions;
85
+ no `rm`/force-push/destructive commands appear. It explicitly preserves input
86
+ validation, error handling, security, and accessibility, and mandates leaving a
87
+ runnable check behind for non-trivial logic.
88
+
89
+ **Verdict**: inert markdown coding-style guidance; safe to vendor and redistribute
90
+ as data. **No executable code vendored** — the payload is a single markdown file.
91
+
92
+ ## Untrusted install instructions — never executed
93
+
94
+ The upstream repo ships install instructions (Claude/Codex plugin marketplace
95
+ `/plugin install`, git installs, `curl`-based extension installs, npm-style refs)
96
+ and auto-executing hooks. These are **UNTRUSTED** and are **NEVER executed** by
97
+ Vesper. Install/maintain read ONLY from this committed snapshot — there is no
98
+ runtime fetch.
99
+
100
+ ## What Vesper installs from this snapshot (Phase 2, once signed off)
101
+
102
+ When the opt-in gate is enabled, `vespercli init`/reinit will install, at the
103
+ **project** level:
104
+
105
+ - `.claude/skills/ponytail/SKILL.md` — this snapshot, verbatim (on-demand reference)
106
+ - `.claude/rules/ponytail.md` — a minimal always-on activation rule derived from
107
+ it (derives from and does not exceed this snapshot)
108
+ - a marker-scoped `@import` in `CLAUDE.md` (`<!-- vesper:ponytail:start/end -->`)
109
+
110
+ ## Re-vendoring (reviewed PR only)
111
+
112
+ To update this snapshot: fetch new upstream content at a new pinned SHA, re-run
113
+ the content review + exclusion confirmation above, update the SHA + retrieval
114
+ date + reviewer + sign-off here, and land it as a reviewed pull request. There is
115
+ no automated path.