self-evolve-framework 1.0.7 → 1.1.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.
- package/README.md +12 -8
- package/bin/cli.js +63 -35
- package/package.json +1 -1
- package/template/rules/CodeGraph.mdc +23 -0
- package/template/rules/Svelte_5.mdc +167 -0
- package/template/rules/Svelte_Flow.mdc +176 -0
- package/template/rules/Tailwind_CSS_v4.mdc +187 -0
- package/template/rules/Tauri.mdc +145 -0
- package/template/rules/app-error-pattern.mdc +65 -0
- package/template/rules/invoke-safe-pattern.mdc +53 -0
- package/template/rules/js.mdc +10 -0
- package/template/rules/powershell.mdc +9 -0
- package/template/rules/self-evolve.mdc +4 -4
- package/template/rules//346/227/245/345/277/227.mdc +15 -0
- package/template/rules//350/257/267/346/261/202.mdc +49 -0
- package/template/skills/caveman/SKILL.md +49 -0
- package/template/skills/check/SKILL.md +393 -0
- package/template/skills/check/agents/reviewer-architecture.md +39 -0
- package/template/skills/check/agents/reviewer-security.md +39 -0
- package/template/skills/check/references/persona-catalog.md +56 -0
- package/template/skills/check/references/project-context.md +120 -0
- package/template/skills/check/references/public-reply.md +14 -0
- package/template/skills/check/scripts/audit_signals.py +666 -0
- package/template/skills/check/scripts/run-tests.sh +19 -0
- package/template/skills/design/SKILL.md +173 -0
- package/template/skills/design/references/design-aesthetic-quality.md +67 -0
- package/template/skills/design/references/design-data-viz.md +34 -0
- package/template/skills/design/references/design-reference.md +295 -0
- package/template/skills/design/references/design-tokens.md +45 -0
- package/template/skills/design/references/design-traps.md +43 -0
- package/template/skills/design-an-interface/SKILL.md +94 -0
- package/template/skills/diagnose/SKILL.md +117 -0
- package/template/skills/diagnose/scripts/hitl-loop.template.sh +41 -0
- package/template/skills/edit-article/SKILL.md +14 -0
- package/template/skills/git-guardrails-claude-code/SKILL.md +95 -0
- package/template/skills/git-guardrails-claude-code/scripts/block-dangerous-git.sh +25 -0
- package/template/skills/grill-me/SKILL.md +10 -0
- package/template/skills/grill-with-docs/ADR-FORMAT.md +47 -0
- package/template/skills/grill-with-docs/CONTEXT-FORMAT.md +60 -0
- package/template/skills/grill-with-docs/SKILL.md +88 -0
- package/template/skills/handoff/SKILL.md +15 -0
- package/template/skills/health/SKILL.md +260 -0
- package/template/skills/health/agents/inspector-context.md +119 -0
- package/template/skills/health/agents/inspector-control.md +84 -0
- package/template/skills/health/agents/inspector-maintainability.md +55 -0
- package/template/skills/health/scripts/check-agent-context.sh +5 -0
- package/template/skills/health/scripts/check-doc-refs.sh +8 -0
- package/template/skills/health/scripts/check-maintainability.sh +8 -0
- package/template/skills/health/scripts/check-verifier-output.sh +5 -0
- package/template/skills/health/scripts/check_agent_context.py +444 -0
- package/template/skills/health/scripts/check_doc_refs.py +110 -0
- package/template/skills/health/scripts/check_maintainability.py +635 -0
- package/template/skills/health/scripts/check_verifier_output.py +116 -0
- package/template/skills/health/scripts/collect-data.sh +751 -0
- package/template/skills/hunt/SKILL.md +232 -0
- package/template/skills/hunt/references/failure-patterns.md +138 -0
- package/template/skills/hunt/references/ime-unicode.md +58 -0
- package/template/skills/hunt/references/logging-techniques.md +72 -0
- package/template/skills/hunt/references/rendering-debug.md +34 -0
- package/template/skills/impeccable/SKILL.md +47 -0
- package/template/skills/improve-codebase-architecture/DEEPENING.md +37 -0
- package/template/skills/improve-codebase-architecture/HTML-REPORT.md +123 -0
- package/template/skills/improve-codebase-architecture/INTERFACE-DESIGN.md +44 -0
- package/template/skills/improve-codebase-architecture/LANGUAGE.md +53 -0
- package/template/skills/improve-codebase-architecture/SKILL.md +81 -0
- package/template/skills/learn/SKILL.md +140 -0
- package/template/skills/migrate-to-shoehorn/SKILL.md +118 -0
- package/template/skills/obsidian-vault/SKILL.md +59 -0
- package/template/skills/prototype/LOGIC.md +79 -0
- package/template/skills/prototype/SKILL.md +30 -0
- package/template/skills/prototype/UI.md +112 -0
- package/template/skills/qa/SKILL.md +130 -0
- package/template/skills/read/SKILL.md +141 -0
- package/template/skills/read/references/read-methods.md +129 -0
- package/template/skills/read/scripts/fetch.sh +106 -0
- package/template/skills/read/scripts/fetch_feishu.py +251 -0
- package/template/skills/read/scripts/fetch_local.py +218 -0
- package/template/skills/read/scripts/fetch_weixin.py +107 -0
- package/template/skills/request-refactor-plan/SKILL.md +68 -0
- package/template/skills/review/SKILL.md +78 -0
- package/template/skills/rust-auto-fix/SKILL.md +94 -0
- package/template/skills/scaffold-exercises/SKILL.md +106 -0
- package/template/skills/sdd-dev/SKILL.md +114 -0
- package/template/skills/setup-matt-pocock-skills/SKILL.md +121 -0
- package/template/skills/setup-matt-pocock-skills/domain.md +51 -0
- package/template/skills/setup-matt-pocock-skills/issue-tracker-github.md +22 -0
- package/template/skills/setup-matt-pocock-skills/issue-tracker-gitlab.md +23 -0
- package/template/skills/setup-matt-pocock-skills/issue-tracker-local.md +19 -0
- package/template/skills/setup-matt-pocock-skills/triage-labels.md +15 -0
- package/template/skills/setup-pre-commit/SKILL.md +91 -0
- package/template/skills/skillopt-sleep/SKILL.md +1 -1
- package/template/skills/svelte-warnings-fix/SKILL.md +94 -0
- package/template/skills/tauri-nsis-installer-icon/SKILL.md +92 -0
- package/template/skills/tauri-nsis-installer-icon/references/tauri-nsis-schema.md +71 -0
- package/template/skills/tb/SKILL.md +62 -0
- package/template/skills/tdd/SKILL.md +109 -0
- package/template/skills/tdd/deep-modules.md +33 -0
- package/template/skills/tdd/interface-design.md +31 -0
- package/template/skills/tdd/mocking.md +59 -0
- package/template/skills/tdd/refactoring.md +10 -0
- package/template/skills/tdd/tests.md +61 -0
- package/template/skills/teach/GLOSSARY-FORMAT.md +35 -0
- package/template/skills/teach/LEARNING-RECORD-FORMAT.md +46 -0
- package/template/skills/teach/MISSION-FORMAT.md +31 -0
- package/template/skills/teach/RESOURCES-FORMAT.md +32 -0
- package/template/skills/teach/SKILL.md +91 -0
- package/template/skills/think/SKILL.md +184 -0
- package/template/skills/to-issues/SKILL.md +83 -0
- package/template/skills/to-prd/SKILL.md +74 -0
- package/template/skills/triage/AGENT-BRIEF.md +168 -0
- package/template/skills/triage/OUT-OF-SCOPE.md +101 -0
- package/template/skills/triage/SKILL.md +103 -0
- package/template/skills/ubiquitous-language/SKILL.md +93 -0
- package/template/skills/ver/SKILL.md +62 -0
- package/template/skills/write/SKILL.md +209 -0
- package/template/skills/write/references/write-en.md +199 -0
- package/template/skills/write/references/write-product-localization.md +43 -0
- package/template/skills/write/references/write-zh-bilingual.md +59 -0
- package/template/skills/write/references/write-zh-prose.md +50 -0
- package/template/skills/write/references/write-zh-release-notes.md +40 -0
- package/template/skills/write/references/write-zh.md +721 -0
- package/template/skills/write-a-skill/SKILL.md +117 -0
- package/template/skills/writing-beats/SKILL.md +52 -0
- package/template/skills/writing-fragments/SKILL.md +75 -0
- package/template/skills/writing-shape/SKILL.md +64 -0
- package/template/skills/zoom-out/SKILL.md +7 -0
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
#!/usr/bin/env python3
|
|
2
|
+
"""Scan a verifier log for stale external paths and suggest cache-clean commands.
|
|
3
|
+
|
|
4
|
+
Detects /tmp/ and /private/tmp/ file references that no longer exist; these are
|
|
5
|
+
the signature of stale worktrees pointed at by a verifier (golangci-lint cache,
|
|
6
|
+
go build cache, npm cache, etc.).
|
|
7
|
+
|
|
8
|
+
Run as: python3 check_verifier_output.py ROOT LOG_FILE
|
|
9
|
+
"""
|
|
10
|
+
|
|
11
|
+
from __future__ import annotations
|
|
12
|
+
|
|
13
|
+
import argparse
|
|
14
|
+
import re
|
|
15
|
+
import sys
|
|
16
|
+
from pathlib import Path
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
TOKEN_RE = re.compile(
|
|
20
|
+
r"(?P<path>(?:/|\.\./)(?:[^\s:'\"(),]+/)*[^\s:'\"(),]+\.[A-Za-z0-9_+-]+)"
|
|
21
|
+
)
|
|
22
|
+
TMP_RE = re.compile(r"(^|/)(private/)?tmp/")
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
def main() -> int:
|
|
26
|
+
parser = argparse.ArgumentParser(description=__doc__)
|
|
27
|
+
parser.add_argument("root", help="Repo root")
|
|
28
|
+
parser.add_argument("log_file", help="Verifier log to scan")
|
|
29
|
+
args = parser.parse_args()
|
|
30
|
+
|
|
31
|
+
root = Path(args.root).resolve()
|
|
32
|
+
log_file = Path(args.log_file).resolve()
|
|
33
|
+
if not root.is_dir():
|
|
34
|
+
print(f"Repo root not found: {root}", file=sys.stderr)
|
|
35
|
+
return 2
|
|
36
|
+
if not log_file.is_file():
|
|
37
|
+
print(f"Log file not found: {log_file}", file=sys.stderr)
|
|
38
|
+
return 2
|
|
39
|
+
|
|
40
|
+
text = log_file.read_text(encoding="utf-8", errors="replace")
|
|
41
|
+
|
|
42
|
+
def normalize(token: str) -> Path:
|
|
43
|
+
if token.startswith("/"):
|
|
44
|
+
return Path(token)
|
|
45
|
+
return (root / token).resolve()
|
|
46
|
+
|
|
47
|
+
paths: list[Path] = []
|
|
48
|
+
for match in TOKEN_RE.finditer(text):
|
|
49
|
+
token = match.group("path").rstrip(".")
|
|
50
|
+
if "/.git/" in token:
|
|
51
|
+
continue
|
|
52
|
+
path = normalize(token)
|
|
53
|
+
if TMP_RE.search(path.as_posix()):
|
|
54
|
+
paths.append(path)
|
|
55
|
+
|
|
56
|
+
unique_paths = []
|
|
57
|
+
seen = set()
|
|
58
|
+
for path in paths:
|
|
59
|
+
value = path.as_posix()
|
|
60
|
+
if value in seen:
|
|
61
|
+
continue
|
|
62
|
+
seen.add(value)
|
|
63
|
+
unique_paths.append(path)
|
|
64
|
+
|
|
65
|
+
stale_paths = [path for path in unique_paths if not path.exists()]
|
|
66
|
+
existing_paths = [path for path in unique_paths if path.exists()]
|
|
67
|
+
lower = text.lower()
|
|
68
|
+
|
|
69
|
+
actions: list[str] = []
|
|
70
|
+
if stale_paths:
|
|
71
|
+
if "golangci-lint" in lower or "errcheck" in lower:
|
|
72
|
+
actions.append("golangci-lint cache clean")
|
|
73
|
+
if re.search(r"\bgo (test|vet|build)\b", lower) or "go-build" in lower:
|
|
74
|
+
actions.append("go clean -cache -testcache")
|
|
75
|
+
if "npm" in lower or "node_modules" in lower:
|
|
76
|
+
actions.append("npm cache verify")
|
|
77
|
+
if not actions:
|
|
78
|
+
actions.append("rerun the verifier after removing stale temporary worktrees")
|
|
79
|
+
|
|
80
|
+
status = "WARN" if stale_paths else "PASS"
|
|
81
|
+
|
|
82
|
+
print("=== VERIFIER OUTPUT SURFACE ===")
|
|
83
|
+
print(f"verifier_output_status: {status}")
|
|
84
|
+
print(f"log_file: {log_file}")
|
|
85
|
+
print("stale_paths:")
|
|
86
|
+
if stale_paths:
|
|
87
|
+
for path in stale_paths[:20]:
|
|
88
|
+
print(f" {path}")
|
|
89
|
+
if len(stale_paths) > 20:
|
|
90
|
+
print(f" ... {len(stale_paths) - 20} more")
|
|
91
|
+
else:
|
|
92
|
+
print(" (none)")
|
|
93
|
+
print("existing_tmp_paths:")
|
|
94
|
+
if existing_paths:
|
|
95
|
+
for path in existing_paths[:10]:
|
|
96
|
+
print(f" {path}")
|
|
97
|
+
if len(existing_paths) > 10:
|
|
98
|
+
print(f" ... {len(existing_paths) - 10} more")
|
|
99
|
+
else:
|
|
100
|
+
print(" (none)")
|
|
101
|
+
print("recommended_actions:")
|
|
102
|
+
if actions:
|
|
103
|
+
for action in dict.fromkeys(actions):
|
|
104
|
+
print(f" {action}")
|
|
105
|
+
else:
|
|
106
|
+
print(" (none)")
|
|
107
|
+
print("verifier_findings:")
|
|
108
|
+
if stale_paths:
|
|
109
|
+
print(" stale external verifier paths detected")
|
|
110
|
+
else:
|
|
111
|
+
print(" (none)")
|
|
112
|
+
return 0
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
if __name__ == "__main__":
|
|
116
|
+
sys.exit(main())
|