The design language that makes your AI harness better at design.
JavaScript
Fix: skills update always showed updates available
Paul Bakaus5071d85a4b6f
diff --git a/bin/commands/skills.mjs b/bin/commands/skills.mjsindex 4a66220e1..9f6493089 100644--- a/bin/commands/skills.mjs+++ b/bin/commands/skills.mjs@@ -114,13 +114,28 @@ async function downloadAndExtractBundle() {/*** Compare local skills against a downloaded bundle.- * Returns true if all local SKILL.md files match the bundle.+ * Only checks skills that exist in the bundle (ignores user's custom+ * skills that aren't part of impeccable).+ * Returns true if every bundle skill matches the local copy.*/function isUpToDate(root, providers, bundleDir) {for (const provider of providers) {- const localHash = hashSkillsDir(join(root, provider, 'skills'));- const remoteHash = hashSkillsDir(join(bundleDir, provider, 'skills'));- if (localHash !== remoteHash) return false;+ const bundleSkillsDir = join(bundleDir, provider, 'skills');+ const localSkillsDir = join(root, provider, 'skills');+ if (!existsSync(bundleSkillsDir)) continue;++ for (const name of readdirSync(bundleSkillsDir)) {+ const bundleMd = join(bundleSkillsDir, name, 'SKILL.md');+ const localMd = join(localSkillsDir, name, 'SKILL.md');+ if (!existsSync(bundleMd)) continue;++ // Missing locally = needs update+ if (!existsSync(localMd)) return false;++ const bundleHash = createHash('sha256').update(readFileSync(bundleMd)).digest('hex');+ const localHash = createHash('sha256').update(readFileSync(localMd)).digest('hex');+ if (bundleHash !== localHash) return false;+ }}return true;}diff --git a/package.json b/package.jsonindex e066f93b4..1bcc0bca1 100644--- a/package.json+++ b/package.json@@ -1,6 +1,6 @@{"name": "impeccable",- "version": "2.1.2",+ "version": "2.1.3","author": "Paul Bakaus","description": "Design skills, commands, and anti-pattern detection for AI coding agents","keywords": [