6fe0aca7ee
The Step 1 and comparison-mode resolver loops walked a hardcoded list of install paths trying to find scripts/last30days.py. Two problems: 1. The list was never exhaustive — it covered ~/.codex/skills, but not ~/.claude/skills, ~/.cursor/skills, ~/.gemini/skills, ~/.copilot/skills, ~/.hermes/skills/research, etc. PR #406 was about to fix that by enumerating more paths, but enumeration is the wrong shape. 2. The resolver could pick a different install than the SKILL.md the model loaded from. Spec-vs-engine divergence is subtle and confusing when it triggers. The model already knows the SKILL.md path it loaded (from its Read tool result). Templating that into the bash block is strictly better than guessing across an enumerated list: - Works for every harness without enumeration (Hermes, Cursor, anything new) because we just use wherever the harness loaded SKILL.md from - Aligns spec with engine — the engine runs from the same install the spec was read from - Deletes ~80 lines of bash across Step 1 + comparison-mode + the prose preamble describing the resolver Mechanics: - SKILL_DIR placeholder in both bash blocks — model substitutes the absolute path of the directory containing the SKILL.md it just Read - One-line validation `[ ! -f "$SKILL_DIR/scripts/last30days.py" ]` catches bad templating with a clear error - All references to $SKILL_ROOT replaced with $SKILL_DIR (badge VERSION lookup, prose description in the LAW-7 preamble area) - STEP 0 unchanged — different concern (marketplaces stale-clone hop) Version 3.2.3 -> 3.2.4 (behavior change: install paths the resolver list never enumerated now work; install paths it did enumerate work the same way they used to but via the SKILL_DIR template).
25 lines
737 B
JSON
25 lines
737 B
JSON
{
|
|
"name": "last30days-skill",
|
|
"owner": {
|
|
"name": "Matt Van Horn",
|
|
"url": "https://github.com/mvanhorn"
|
|
},
|
|
"metadata": {
|
|
"description": "Marketplace hosting the Last 30 Days research plugin."
|
|
},
|
|
"plugins": [
|
|
{
|
|
"name": "last30days",
|
|
"description": "Research any topic across Reddit, X, YouTube, TikTok, Instagram, Hacker News, Polymarket, GitHub, and 5+ more sources. AI agent scores by upvotes, likes, and real money - not editors.",
|
|
"version": "3.2.4",
|
|
"author": {
|
|
"name": "Matt Van Horn",
|
|
"url": "https://github.com/mvanhorn"
|
|
},
|
|
"source": "./",
|
|
"category": "productivity",
|
|
"homepage": "https://github.com/mvanhorn/last30days-skill"
|
|
}
|
|
]
|
|
}
|