skillwiki 0.4.0 → 0.4.1
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/dist/cli.js +15 -9
- package/package.json +1 -1
- package/skills/.claude-plugin/plugin.json +1 -1
- package/skills/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -2567,9 +2567,20 @@ async function runLint(input) {
|
|
|
2567
2567
|
workItemDirs.set(dir, pages);
|
|
2568
2568
|
}
|
|
2569
2569
|
for (const [dir, pages] of workItemDirs) {
|
|
2570
|
-
const
|
|
2570
|
+
const specPage = pages.find((p) => p.relPath.endsWith("/spec.md"));
|
|
2571
2571
|
const hasPlan = pages.some((p) => p.relPath.endsWith("/plan.md"));
|
|
2572
|
-
|
|
2572
|
+
let specStatus;
|
|
2573
|
+
let specStarted;
|
|
2574
|
+
if (specPage) {
|
|
2575
|
+
const text = await readPage(specPage);
|
|
2576
|
+
const fm = extractFrontmatter(text);
|
|
2577
|
+
if (fm.ok) {
|
|
2578
|
+
specStatus = fm.data.status;
|
|
2579
|
+
specStarted = fm.data.started;
|
|
2580
|
+
}
|
|
2581
|
+
}
|
|
2582
|
+
const isClosed = specStatus === "completed" || specStatus === "abandoned";
|
|
2583
|
+
if (specPage && !hasPlan && !isClosed) {
|
|
2573
2584
|
const lastSegment = dir.split("/").pop();
|
|
2574
2585
|
const dateMatch = lastSegment.match(/^(\d{4}-\d{2}-\d{2})/);
|
|
2575
2586
|
if (dateMatch) {
|
|
@@ -2579,13 +2590,8 @@ async function runLint(input) {
|
|
|
2579
2590
|
}
|
|
2580
2591
|
}
|
|
2581
2592
|
}
|
|
2582
|
-
|
|
2583
|
-
|
|
2584
|
-
const text = await readPage(page);
|
|
2585
|
-
const fm = extractFrontmatter(text);
|
|
2586
|
-
if (fm.ok && fm.data.status === "in-progress" && !fm.data.started) {
|
|
2587
|
-
workItemHealth.push(`${page.relPath}: in-progress without started date`);
|
|
2588
|
-
}
|
|
2593
|
+
if (specPage && specStatus === "in-progress" && !specStarted) {
|
|
2594
|
+
workItemHealth.push(`${specPage.relPath}: in-progress without started date`);
|
|
2589
2595
|
}
|
|
2590
2596
|
}
|
|
2591
2597
|
if (workItemHealth.length > 0) buckets.work_item_health = workItemHealth;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "skillwiki",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.1",
|
|
4
4
|
"skills": "./",
|
|
5
5
|
"description": "Project-aware Karpathy-style knowledge base for Claude Code: 18 prompt-only skills (wiki-*, proj-*, using-skillwiki) backed by the deterministic `skillwiki` CLI.",
|
|
6
6
|
"author": {
|