@namewta/speculo 2.0.6 → 2.1.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.
Files changed (273) hide show
  1. package/README.md +3 -0
  2. package/THIRD-PARTY-NOTICES.md +4 -0
  3. package/dist/src/agent-skills.d.ts +5 -0
  4. package/dist/src/agent-skills.js +10 -7
  5. package/dist/src/agent-skills.js.map +1 -1
  6. package/dist/src/cli.js +25 -36
  7. package/dist/src/cli.js.map +1 -1
  8. package/dist/src/coordination.d.ts +3 -3
  9. package/dist/src/coordination.js +21 -4
  10. package/dist/src/coordination.js.map +1 -1
  11. package/dist/src/doctor.js +8 -1
  12. package/dist/src/doctor.js.map +1 -1
  13. package/dist/src/external-files.d.ts +4 -2
  14. package/dist/src/external-files.js +4 -4
  15. package/dist/src/external-files.js.map +1 -1
  16. package/dist/src/hub-catalog.d.ts +11 -0
  17. package/dist/src/hub-catalog.js +91 -0
  18. package/dist/src/hub-catalog.js.map +1 -0
  19. package/dist/src/hub-resources.json +1 -0
  20. package/dist/src/hub-skills.d.ts +53 -0
  21. package/dist/src/hub-skills.js +157 -0
  22. package/dist/src/hub-skills.js.map +1 -0
  23. package/dist/src/index.d.ts +6 -0
  24. package/dist/src/index.js +48 -47
  25. package/dist/src/index.js.map +1 -1
  26. package/dist/src/install-ui.d.ts +16 -7
  27. package/dist/src/install-ui.js +143 -92
  28. package/dist/src/install-ui.js.map +1 -1
  29. package/dist/src/manifest.d.ts +2 -0
  30. package/dist/src/manifest.js +2 -0
  31. package/dist/src/manifest.js.map +1 -1
  32. package/dist/src/refresh.d.ts +1 -0
  33. package/dist/src/refresh.js +13 -10
  34. package/dist/src/refresh.js.map +1 -1
  35. package/dist/src/retained-workflows.d.ts +10 -0
  36. package/dist/src/retained-workflows.js +25 -0
  37. package/dist/src/retained-workflows.js.map +1 -0
  38. package/dist/src/runtime-entry.d.ts +1 -0
  39. package/dist/src/runtime-entry.js +1 -0
  40. package/dist/src/runtime-entry.js.map +1 -1
  41. package/dist/src/skill-trees.d.ts +27 -0
  42. package/dist/src/skill-trees.js +118 -0
  43. package/dist/src/skill-trees.js.map +1 -0
  44. package/dist/src/terminal-ui.d.ts +30 -0
  45. package/dist/src/terminal-ui.js +148 -0
  46. package/dist/src/terminal-ui.js.map +1 -0
  47. package/dist/src/transaction.d.ts +3 -14
  48. package/dist/src/transaction.js +20 -36
  49. package/dist/src/transaction.js.map +1 -1
  50. package/dist/src/workflow-install.d.ts +15 -0
  51. package/dist/src/workflow-install.js +104 -0
  52. package/dist/src/workflow-install.js.map +1 -0
  53. package/dist/src/workflows.js +1 -1
  54. package/dist/src/workflows.js.map +1 -1
  55. package/package.json +6 -2
  56. package/skills-hub/automation/grok-bot-team-steward/CHEATSHEET.md +17 -0
  57. package/skills-hub/automation/grok-bot-team-steward/INSTALL.md +23 -0
  58. package/skills-hub/automation/grok-bot-team-steward/LICENSE +21 -0
  59. package/skills-hub/automation/grok-bot-team-steward/README.md +9 -0
  60. package/skills-hub/automation/grok-bot-team-steward/SKILL.md +52 -0
  61. package/skills-hub/automation/grok-bot-team-steward/agents/openai.yaml +4 -0
  62. package/skills-hub/automation/grok-bot-team-steward/references/00-hard-rules.md +50 -0
  63. package/skills-hub/automation/grok-bot-team-steward/references/01-snapshot-schema.md +84 -0
  64. package/skills-hub/automation/grok-bot-team-steward/references/02-export-protocol.md +57 -0
  65. package/skills-hub/automation/grok-bot-team-steward/references/03-restore-protocol.md +64 -0
  66. package/skills-hub/automation/grok-bot-team-steward/references/04-inventory.md +37 -0
  67. package/skills-hub/automation/grok-bot-team-steward/references/05-conversations.md +71 -0
  68. package/skills-hub/automation/grok-bot-team-steward/references/06-sanitizer.md +39 -0
  69. package/skills-hub/automation/grok-bot-team-steward/references/07-prompts.md +87 -0
  70. package/skills-hub/automation/grok-bot-team-steward/references/08-verification.md +30 -0
  71. package/skills-hub/automation/grok-bot-team-steward/references/09-sources.md +31 -0
  72. package/skills-hub/automation/grok-bot-team-steward/scripts/scrub.sh +17 -0
  73. package/skills-hub/automation/grok-bot-team-steward/scripts/snapshot-name.sh +18 -0
  74. package/skills-hub/automation/grok-bot-team-steward/scripts/validate-snapshot.sh +62 -0
  75. package/skills-hub/automation/grok-bot-team-steward/steward/ACTIVATE.md +58 -0
  76. package/skills-hub/automation/grok-bot-team-steward/steward/SETUP-INSTRUCTIONS.md +33 -0
  77. package/skills-hub/automation/grok-bot-team-steward/steward/STEWARD-PROFILE.md +28 -0
  78. package/skills-hub/automation/grok-bot-team-steward/templates/snapshot/CHANGELOG.md +3 -0
  79. package/skills-hub/automation/grok-bot-team-steward/templates/snapshot/CHARTER.md +27 -0
  80. package/skills-hub/automation/grok-bot-team-steward/templates/snapshot/DROP-LIST.md +10 -0
  81. package/skills-hub/automation/grok-bot-team-steward/templates/snapshot/GAPS.md +6 -0
  82. package/skills-hub/automation/grok-bot-team-steward/templates/snapshot/INIT.md +14 -0
  83. package/skills-hub/automation/grok-bot-team-steward/templates/snapshot/MANIFEST.md +30 -0
  84. package/skills-hub/automation/grok-bot-team-steward/templates/snapshot/MANIFEST.yaml +20 -0
  85. package/skills-hub/automation/grok-bot-team-steward/templates/snapshot/ORG.md +15 -0
  86. package/skills-hub/automation/grok-bot-team-steward/templates/snapshot/README.md +8 -0
  87. package/skills-hub/automation/grok-bot-team-steward/templates/snapshot/RESTORE.md +13 -0
  88. package/skills-hub/automation/grok-bot-team-steward/templates/snapshot/ROSTER.md +11 -0
  89. package/skills-hub/automation/grok-bot-team-steward/templates/snapshot/bots/_SLUG/GAPS.md +7 -0
  90. package/skills-hub/automation/grok-bot-team-steward/templates/snapshot/bots/_SLUG/MEMORY.md +9 -0
  91. package/skills-hub/automation/grok-bot-team-steward/templates/snapshot/bots/_SLUG/PROFILE.md +27 -0
  92. package/skills-hub/automation/grok-bot-team-steward/templates/snapshot/bots/_SLUG/agent-spec.md +9 -0
  93. package/skills-hub/automation/grok-bot-team-steward/templates/snapshot/bots/_SLUG/conversations/INDEX.md +5 -0
  94. package/skills-hub/automation/grok-bot-team-steward/templates/snapshot/bots/_SLUG/conversations/main.md +9 -0
  95. package/skills-hub/automation/grok-bot-team-steward/templates/snapshot/bots/_SLUG/routines.md +5 -0
  96. package/skills-hub/automation/grok-bot-team-steward/templates/snapshot/bots/_SLUG/skills.md +5 -0
  97. package/skills-hub/automation/grok-bot-team-steward/templates/snapshot/connectors.md +7 -0
  98. package/skills-hub/automation/grok-bot-team-steward/templates/snapshot/meta/COMPLETED.md +6 -0
  99. package/skills-hub/automation/grok-bot-team-steward/templates/snapshot/meta/CREATED.md +6 -0
  100. package/skills-hub/automation/grok-bot-team-steward/templates/snapshot/meta/RESTORE-NOTES.md +13 -0
  101. package/skills-hub/automation/grok-bot-team-steward/templates/snapshot/meta/SANITIZER.md +7 -0
  102. package/skills-hub/automation/grok-bot-team-steward/templates/snapshot/meta/SOURCE.md +8 -0
  103. package/skills-hub/automation/grok-bot-team-steward/templates/snapshot/rooms/_ROOM.md +8 -0
  104. package/skills-hub/automation/grok-bot-team-steward/templates/snapshot/routines/_ROUTINE.md +12 -0
  105. package/skills-hub/automation/grok-bot-team-steward/templates/snapshot/shared/shared-memory.md +5 -0
  106. package/skills-hub/automation/grok-bot-team-steward/templates/snapshot/shared/workspace-map.md +5 -0
  107. package/skills-hub/automation/grok-bot-team-steward/templates/snapshot/skills/_SKILL/SKILL.md +18 -0
  108. package/skills-hub/automation/herdr/SKILL.md +246 -0
  109. package/skills-hub/automation/orca/SKILL.md +328 -0
  110. package/skills-hub/coding/gitea-repo/LICENSE +21 -0
  111. package/skills-hub/coding/gitea-repo/SKILL.md +50 -0
  112. package/skills-hub/coding/gitea-repo/agents/openai.yaml +4 -0
  113. package/skills-hub/coding/gitea-repo/references/auth-and-scopes.md +58 -0
  114. package/skills-hub/coding/gitea-repo/references/endpoint-map.md +80 -0
  115. package/skills-hub/coding/gitea-repo/references/pagination-and-errors.md +34 -0
  116. package/skills-hub/coding/gitea-repo/scripts/gitea_api.py +814 -0
  117. package/skills-hub/coding/github-repo-steward/LICENSE +21 -0
  118. package/skills-hub/coding/github-repo-steward/SKILL.md +48 -0
  119. package/skills-hub/coding/github-repo-steward/agents/openai.yaml +4 -0
  120. package/skills-hub/coding/github-repo-steward/references/00-auth-and-tokens.md +73 -0
  121. package/skills-hub/coding/github-repo-steward/references/01-inventory.md +55 -0
  122. package/skills-hub/coding/github-repo-steward/references/02-lifecycle.md +57 -0
  123. package/skills-hub/coding/github-repo-steward/references/03-stars.md +42 -0
  124. package/skills-hub/coding/github-repo-steward/references/04-hygiene.md +40 -0
  125. package/skills-hub/coding/github-repo-steward/references/05-sources.md +42 -0
  126. package/skills-hub/coding/github-repo-steward/scripts/inventory.sh +64 -0
  127. package/skills-hub/coding/vscode-fullstack/LICENSE +21 -0
  128. package/skills-hub/coding/vscode-fullstack/SKILL.md +47 -0
  129. package/skills-hub/coding/vscode-fullstack/agents/openai.yaml +4 -0
  130. package/skills-hub/coding/vscode-fullstack/references/extensions-and-settings.md +181 -0
  131. package/skills-hub/coding/vscode-fullstack/references/profiles-and-validation.md +62 -0
  132. package/skills-hub/coding/vscode-fullstack/references/runtime-reuse.md +52 -0
  133. package/skills-hub/design/photo-retouch/LICENSE +21 -0
  134. package/skills-hub/design/photo-retouch/SKILL.md +50 -0
  135. package/skills-hub/design/photo-retouch/agents/openai.yaml +4 -0
  136. package/skills-hub/design/photo-retouch/references/basic-retouch.md +58 -0
  137. package/skills-hub/design/photo-retouch/references/formal-portrait.md +57 -0
  138. package/skills-hub/design/photo-retouch/references/object-and-canvas.md +82 -0
  139. package/skills-hub/design/photo-retouch/references/product-photo.md +41 -0
  140. package/skills-hub/design/photo-retouch/references/repair-and-look.md +61 -0
  141. package/skills-hub/design/photo-retouch/references/social-effects.md +55 -0
  142. package/skills-hub/design/photo-retouch/references/travel-creative.md +79 -0
  143. package/skills-hub/system/clash-client-profile/LICENSE +21 -0
  144. package/skills-hub/system/clash-client-profile/SKILL.md +79 -0
  145. package/skills-hub/system/clash-client-profile/agents/openai.yaml +4 -0
  146. package/skills-hub/system/clash-client-profile/references/acceptance.md +81 -0
  147. package/skills-hub/system/clash-client-profile/references/browser-privacy.md +35 -0
  148. package/skills-hub/system/clash-client-profile/references/clash-verge.md +40 -0
  149. package/skills-hub/system/clash-client-profile/references/dns-workflow.md +147 -0
  150. package/skills-hub/system/clash-client-profile/references/flclash.md +24 -0
  151. package/skills-hub/system/clash-client-profile/references/network-performance.md +25 -0
  152. package/skills-hub/system/clash-client-profile/references/platform-dns.md +109 -0
  153. package/skills-hub/system/clash-client-profile/references/sources.md +46 -0
  154. package/skills-hub/system/clash-client-profile/references/troubleshooting.md +82 -0
  155. package/skills-hub/system/clash-client-profile/scripts/dns_guard.py +650 -0
  156. package/skills-hub/system/clash-client-profile/scripts/proxy_doctor.py +213 -0
  157. package/skills-hub/system/clash-client-profile/scripts/render_rules.py +34 -0
  158. package/skills-hub/system/clash-client-profile/templates/ai-rules.yaml +18 -0
  159. package/skills-hub/system/clash-client-profile/templates/dns-request.example.json +9 -0
  160. package/skills-hub/system/clash-client-profile/templates/dns.yaml +8 -0
  161. package/skills-hub/system/linux-dev-disk-cleanup/LICENSE +21 -0
  162. package/skills-hub/system/linux-dev-disk-cleanup/SKILL.md +42 -0
  163. package/skills-hub/system/linux-dev-disk-cleanup/agents/openai.yaml +4 -0
  164. package/skills-hub/system/linux-dev-disk-cleanup/references/linux-cleanup-workflow.md +145 -0
  165. package/skills-hub/system/optimize-codex-config/LICENSE +21 -0
  166. package/skills-hub/system/optimize-codex-config/SKILL.md +101 -0
  167. package/skills-hub/system/optimize-codex-config/agents/openai.yaml +4 -0
  168. package/skills-hub/system/optimize-codex-config/assets/capabilities.example.json +22 -0
  169. package/skills-hub/system/optimize-codex-config/references/cli.md +35 -0
  170. package/skills-hub/system/optimize-codex-config/references/configuration-contract.md +33 -0
  171. package/skills-hub/system/optimize-codex-config/references/optimization-method.md +38 -0
  172. package/skills-hub/system/optimize-codex-config/references/privacy.md +41 -0
  173. package/skills-hub/system/optimize-codex-config/references/sources.md +24 -0
  174. package/skills-hub/system/optimize-codex-config/references/statusline.md +31 -0
  175. package/skills-hub/system/optimize-codex-config/references/transactions.md +32 -0
  176. package/skills-hub/system/optimize-codex-config/references/troubleshooting.md +95 -0
  177. package/skills-hub/system/optimize-codex-config/scripts/adapters/claude.mjs +24 -0
  178. package/skills-hub/system/optimize-codex-config/scripts/adapters/codex.mjs +10 -0
  179. package/skills-hub/system/optimize-codex-config/scripts/ai-cli-config.mjs +67 -0
  180. package/skills-hub/system/optimize-codex-config/scripts/audit-codex-config.mjs +762 -0
  181. package/skills-hub/system/optimize-codex-config/scripts/lib/document.mjs +166 -0
  182. package/skills-hub/system/optimize-codex-config/scripts/lib/inspect.mjs +211 -0
  183. package/skills-hub/system/optimize-codex-config/scripts/lib/io.mjs +104 -0
  184. package/skills-hub/system/optimize-codex-config/scripts/lib/plan.mjs +79 -0
  185. package/skills-hub/system/optimize-codex-config/scripts/lib/transaction.mjs +205 -0
  186. package/skills-hub/system/optimize-codex-config/scripts/lib/writers.mjs +46 -0
  187. package/skills-hub/system/optimize-codex-config/scripts/statusline/claude-statusline.mjs +94 -0
  188. package/skills-hub/system/optimize-codex-config/scripts/vendor/THIRD-PARTY-NOTICES.txt +250 -0
  189. package/skills-hub/system/optimize-codex-config/scripts/vendor/build-package-lock.json +488 -0
  190. package/skills-hub/system/optimize-codex-config/scripts/vendor/manifest.json +14 -0
  191. package/skills-hub/system/optimize-codex-config/scripts/vendor/parsers.mjs +16 -0
  192. package/skills-hub/system/proxy-region-locale/LICENSE +21 -0
  193. package/skills-hub/system/proxy-region-locale/SKILL.md +42 -0
  194. package/skills-hub/system/proxy-region-locale/agents/openai.yaml +4 -0
  195. package/skills-hub/system/proxy-region-locale/references/linux.md +35 -0
  196. package/skills-hub/system/proxy-region-locale/references/macos.md +31 -0
  197. package/skills-hub/system/proxy-region-locale/references/windows.md +45 -0
  198. package/skills-hub/system/system-health-audit/LICENSE +21 -0
  199. package/skills-hub/system/system-health-audit/SKILL.md +41 -0
  200. package/skills-hub/system/system-health-audit/agents/openai.yaml +4 -0
  201. package/skills-hub/system/system-health-audit/references/platforms.md +37 -0
  202. package/skills-hub/system/system-health-audit/scripts/system_audit.py +41 -0
  203. package/skills-hub/system/windows-dev-disk-cleanup/LICENSE +21 -0
  204. package/skills-hub/system/windows-dev-disk-cleanup/SKILL.md +40 -0
  205. package/skills-hub/system/windows-dev-disk-cleanup/agents/openai.yaml +4 -0
  206. package/skills-hub/system/windows-dev-disk-cleanup/references/windows-cleanup-workflow.md +121 -0
  207. package/skills-hub/writing/.gitkeep +0 -0
  208. package/skills-hub/writing/job-application/LICENSE +21 -0
  209. package/skills-hub/writing/job-application/SKILL.md +160 -0
  210. package/skills-hub/writing/job-application/agents/openai.yaml +4 -0
  211. package/skills-hub/writing/job-application/assets/resume.css +10 -0
  212. package/skills-hub/writing/job-application/config.example.json +9 -0
  213. package/skills-hub/writing/job-application/references/company-research.md +7 -0
  214. package/skills-hub/writing/job-application/references/corpus-schema.md +33 -0
  215. package/skills-hub/writing/job-application/references/honesty-gate.md +29 -0
  216. package/skills-hub/writing/job-application/references/improvement-plan.md +15 -0
  217. package/skills-hub/writing/job-application/references/ingest-protocol.md +18 -0
  218. package/skills-hub/writing/job-application/references/interview-speech.md +16 -0
  219. package/skills-hub/writing/job-application/references/jd-parse.md +18 -0
  220. package/skills-hub/writing/job-application/references/persist-paths.md +34 -0
  221. package/skills-hub/writing/job-application/references/question-bank.md +19 -0
  222. package/skills-hub/writing/job-application/references/rendering.md +9 -0
  223. package/skills-hub/writing/job-application/references/resume-playbook.md +30 -0
  224. package/skills-hub/writing/job-application/scripts/README.md +12 -0
  225. package/skills-hub/writing/job-application/scripts/ingest_kb.py +188 -0
  226. package/skills-hub/writing/job-application/scripts/render_resume.py +144 -0
  227. package/skills-hub/writing/job-application/scripts/validate_claims.py +52 -0
  228. package/skills-hub/writing/job-application/scripts/write_config.py +72 -0
  229. package/skills-hub/writing/job-application/templates/application-index.md +10 -0
  230. package/skills-hub/writing/job-application/templates/brief.md +16 -0
  231. package/skills-hub/writing/job-application/templates/changelog.md +6 -0
  232. package/skills-hub/writing/job-application/templates/company-research.md +15 -0
  233. package/skills-hub/writing/job-application/templates/corpus.md +11 -0
  234. package/skills-hub/writing/job-application/templates/evidence-map.md +5 -0
  235. package/skills-hub/writing/job-application/templates/framings.md +6 -0
  236. package/skills-hub/writing/job-application/templates/improvement-plan.md +16 -0
  237. package/skills-hub/writing/job-application/templates/ingest-log.md +4 -0
  238. package/skills-hub/writing/job-application/templates/known-gaps.md +4 -0
  239. package/skills-hub/writing/job-application/templates/match-report.md +21 -0
  240. package/skills-hub/writing/job-application/templates/methodology-cache.md +10 -0
  241. package/skills-hub/writing/job-application/templates/persist-index.md +11 -0
  242. package/skills-hub/writing/job-application/templates/profile.md +21 -0
  243. package/skills-hub/writing/job-application/templates/questions.md +22 -0
  244. package/skills-hub/writing/job-application/templates/resume-original.md +10 -0
  245. package/skills-hub/writing/job-application/templates/resume-tailored.md +21 -0
  246. package/skills-hub/writing/job-application/templates/sources-index.md +6 -0
  247. package/skills-hub/writing/job-application/templates/speech.md +19 -0
  248. package/skills-hub/writing/job-application/templates/stories.md +9 -0
  249. package/skills-hub/writing/job-application/templates/story-bank.md +11 -0
  250. package/skills-hub/writing/job-application/templates/strengths.md +4 -0
  251. package/skills-hub/writing/job-application/templates/style-memory.md +7 -0
  252. package/skills-hub/writing/ste-zh/LICENSE +21 -0
  253. package/skills-hub/writing/ste-zh/NOTICE.md +9 -0
  254. package/skills-hub/writing/ste-zh/SKILL.md +130 -0
  255. package/skills-hub/writing/ste-zh/agents/openai.yaml +6 -0
  256. package/skills-hub/writing/ste-zh/examples/zh-report.md +23 -0
  257. package/skills-hub/writing/ste-zh/references/english-modes.md +13 -0
  258. package/skills-hub/writing/ste-zh/references/terminology.md +13 -0
  259. package/skills-hub/writing/ste-zh/references/zh-rules.md +29 -0
  260. package/template/.speculo/refresh-contract.json +2 -0
  261. package/template/canonical/canonical-specdev-goal-plan.md +33 -25
  262. package/template/canonical/canonical-specdev-grill-with-docs.md +214 -206
  263. package/template/canonical/canonical-specdev-spec.md +214 -206
  264. package/template/canonical/canonical-specdev-tickets.md +214 -206
  265. package/template/canonical/canonical-specdev-wayfinder.md +214 -206
  266. package/template/lib/speculo-runtime.mjs +183 -8
  267. package/template/references/coordination/coordination-contract.md +11 -3
  268. package/template/references/coordination/modes/cli.md +2 -2
  269. package/template/references/coordination/modes/herdr.md +9 -9
  270. package/template/references/coordination/modes/orca.md +11 -11
  271. package/template/references/coordination/project-facts.schema.json +1 -0
  272. package/template/workflows/specdev/specdev-i-init-setup/SKILL.md +7 -6
  273. package/template/workflows/specdev/specdev-i-init-setup/references/first-setup.md +30 -1
@@ -0,0 +1,144 @@
1
+ #!/usr/bin/env python3
2
+ """Render a tailored Markdown resume to HTML, and DOCX/PDF when libraries exist."""
3
+
4
+ from __future__ import annotations
5
+
6
+ import argparse
7
+ import html
8
+ import json
9
+ import re
10
+ import sys
11
+ from pathlib import Path
12
+
13
+ CLAIM_COMMENT = re.compile(r"<!--\s*claim:C-\d+\s*-->", re.IGNORECASE)
14
+
15
+
16
+ def md_to_blocks(text: str) -> list[tuple[str, str]]:
17
+ blocks: list[tuple[str, str]] = []
18
+ paragraph: list[str] = []
19
+
20
+ def flush() -> None:
21
+ if paragraph:
22
+ blocks.append(("p", " ".join(paragraph).strip()))
23
+ paragraph.clear()
24
+
25
+ for raw in text.splitlines():
26
+ line = CLAIM_COMMENT.sub("", raw).rstrip()
27
+ if not line.strip() or line.strip().startswith("<!--"):
28
+ flush()
29
+ continue
30
+ if line.startswith("### "):
31
+ flush()
32
+ blocks.append(("h3", line[4:].strip()))
33
+ elif line.startswith("## "):
34
+ flush()
35
+ blocks.append(("h2", line[3:].strip()))
36
+ elif line.startswith("# "):
37
+ flush()
38
+ blocks.append(("h1", line[2:].strip()))
39
+ elif line.startswith("- "):
40
+ flush()
41
+ blocks.append(("li", line[2:].strip()))
42
+ else:
43
+ paragraph.append(line.strip())
44
+ flush()
45
+ return blocks
46
+
47
+
48
+ def to_html(blocks: list[tuple[str, str]], css: str) -> str:
49
+ parts = [
50
+ "<!DOCTYPE html>",
51
+ '<html lang="zh">',
52
+ "<head>",
53
+ '<meta charset="utf-8">',
54
+ "<title>Resume</title>",
55
+ f"<style>\n{css}\n</style>",
56
+ "</head>",
57
+ "<body>",
58
+ '<main class="sheet">',
59
+ ]
60
+ list_open = False
61
+ for kind, content in blocks:
62
+ safe = html.escape(content)
63
+ if kind != "li" and list_open:
64
+ parts.append("</ul>")
65
+ list_open = False
66
+ if kind == "li":
67
+ if not list_open:
68
+ parts.append("<ul>")
69
+ list_open = True
70
+ parts.append(f"<li>{safe}</li>")
71
+ elif kind in {"h1", "h2", "h3", "p"}:
72
+ parts.append(f"<{kind}>{safe}</{kind}>")
73
+ if list_open:
74
+ parts.append("</ul>")
75
+ parts.extend(["</main>", "</body>", "</html>", ""])
76
+ return "\n".join(parts)
77
+
78
+
79
+ def try_docx(blocks: list[tuple[str, str]], dest: Path) -> str:
80
+ try:
81
+ from docx import Document
82
+ except ImportError:
83
+ return "skipped: python-docx not installed"
84
+ doc = Document()
85
+ for kind, content in blocks:
86
+ if kind == "h1":
87
+ doc.add_heading(content, level=0)
88
+ elif kind == "h2":
89
+ doc.add_heading(content, level=1)
90
+ elif kind == "h3":
91
+ doc.add_heading(content, level=2)
92
+ elif kind == "li":
93
+ doc.add_paragraph(content, style="List Bullet")
94
+ else:
95
+ doc.add_paragraph(content)
96
+ doc.save(dest)
97
+ return "written"
98
+
99
+
100
+ def try_pdf(html_path: Path, dest: Path) -> str:
101
+ try:
102
+ from weasyprint import HTML
103
+ except ImportError:
104
+ return "skipped: weasyprint not installed"
105
+ HTML(filename=str(html_path)).write_pdf(str(dest))
106
+ return "written"
107
+
108
+
109
+ def main() -> None:
110
+ parser = argparse.ArgumentParser(description=__doc__)
111
+ parser.add_argument("--md", required=True)
112
+ parser.add_argument("--css", required=True)
113
+ parser.add_argument("--out-dir", required=True)
114
+ args = parser.parse_args()
115
+
116
+ md_path = Path(args.md)
117
+ css_path = Path(args.css)
118
+ out_dir = Path(args.out_dir)
119
+ if not md_path.is_file():
120
+ print(f"missing markdown: {md_path}", file=sys.stderr)
121
+ raise SystemExit(2)
122
+ css = css_path.read_text(encoding="utf-8") if css_path.is_file() else "body{font-family:sans-serif}"
123
+ out_dir.mkdir(parents=True, exist_ok=True)
124
+ blocks = md_to_blocks(md_path.read_text(encoding="utf-8"))
125
+ html_path = out_dir / "resume-tailored.html"
126
+ html_path.write_text(to_html(blocks, css), encoding="utf-8")
127
+ docx_status = try_docx(blocks, out_dir / "resume-tailored.docx")
128
+ pdf_status = try_pdf(html_path, out_dir / "resume-tailored.pdf")
129
+ status = {
130
+ "html": "written",
131
+ "docx": docx_status,
132
+ "pdf": pdf_status,
133
+ }
134
+ (out_dir / "render-status.json").write_text(
135
+ json.dumps(status, ensure_ascii=False, indent=2) + "\n",
136
+ encoding="utf-8",
137
+ )
138
+ print(json.dumps(status, ensure_ascii=False))
139
+ if docx_status != "written" and pdf_status != "written":
140
+ raise SystemExit(3)
141
+
142
+
143
+ if __name__ == "__main__":
144
+ main()
@@ -0,0 +1,52 @@
1
+ #!/usr/bin/env python3
2
+ """Fail if tailored text cites a claim id missing from the evidence map."""
3
+
4
+ from __future__ import annotations
5
+
6
+ import argparse
7
+ import re
8
+ import sys
9
+ from pathlib import Path
10
+
11
+ CLAIM_RE = re.compile(r"claim:(C-\d+)", re.IGNORECASE)
12
+ ID_RE = re.compile(r"\b(C-\d+)\b")
13
+
14
+
15
+ def known_ids(evidence_text: str) -> set[str]:
16
+ return {match.group(1).upper() for match in ID_RE.finditer(evidence_text)}
17
+
18
+
19
+ def main() -> None:
20
+ parser = argparse.ArgumentParser(description=__doc__)
21
+ parser.add_argument("--evidence", required=True)
22
+ parser.add_argument("--files", nargs="+", required=True)
23
+ args = parser.parse_args()
24
+
25
+ evidence = Path(args.evidence)
26
+ if not evidence.is_file():
27
+ print(f"missing evidence map: {evidence}", file=sys.stderr)
28
+ raise SystemExit(2)
29
+ allowed = known_ids(evidence.read_text(encoding="utf-8"))
30
+ orphans: list[str] = []
31
+ used = 0
32
+ for raw in args.files:
33
+ path = Path(raw)
34
+ if not path.is_file():
35
+ print(f"missing file: {path}", file=sys.stderr)
36
+ raise SystemExit(2)
37
+ text = path.read_text(encoding="utf-8")
38
+ for match in CLAIM_RE.finditer(text):
39
+ used += 1
40
+ claim = match.group(1).upper()
41
+ if claim not in allowed:
42
+ orphans.append(f"{path}: {claim}")
43
+ if orphans:
44
+ print("orphan claims:", file=sys.stderr)
45
+ for item in orphans:
46
+ print(f" {item}", file=sys.stderr)
47
+ raise SystemExit(1)
48
+ print(f"ok claims={used} evidence_ids={len(allowed)}")
49
+
50
+
51
+ if __name__ == "__main__":
52
+ main()
@@ -0,0 +1,72 @@
1
+ #!/usr/bin/env python3
2
+ """Write job-application path pointer JSON into the skill dir and persist_root."""
3
+
4
+ from __future__ import annotations
5
+
6
+ import argparse
7
+ import json
8
+ import sys
9
+ from datetime import datetime, timezone
10
+ from pathlib import Path
11
+
12
+
13
+ def die(message: str, code: int = 2) -> None:
14
+ print(message, file=sys.stderr)
15
+ raise SystemExit(code)
16
+
17
+
18
+ def abs_dir(raw: str, label: str, must_exist: bool) -> Path:
19
+ path = Path(raw).expanduser().resolve()
20
+ if path.exists() and not path.is_dir():
21
+ die(f"{label} is not a directory: {path}")
22
+ if must_exist and not path.is_dir():
23
+ die(f"{label} does not exist: {path}")
24
+ return path
25
+
26
+
27
+ def inside(child: Path, parent: Path) -> bool:
28
+ try:
29
+ child.resolve().relative_to(parent.resolve())
30
+ return True
31
+ except ValueError:
32
+ return False
33
+
34
+
35
+ def main() -> None:
36
+ parser = argparse.ArgumentParser(description=__doc__)
37
+ parser.add_argument("--skill-dir", required=True)
38
+ parser.add_argument("--persist-root", required=True)
39
+ parser.add_argument("--kb-root", required=True)
40
+ parser.add_argument("--locale", default="zh")
41
+ parser.add_argument("--page-budget", type=int, default=2)
42
+ args = parser.parse_args()
43
+
44
+ skill_dir = abs_dir(args.skill_dir, "skill-dir", must_exist=True)
45
+ if not (skill_dir / "SKILL.md").is_file():
46
+ die(f"skill-dir has no SKILL.md: {skill_dir}")
47
+ kb_root = abs_dir(args.kb_root, "kb-root", must_exist=True)
48
+ persist_root = abs_dir(args.persist_root, "persist-root", must_exist=False)
49
+ if inside(persist_root, skill_dir):
50
+ die("persist-root must not live inside the skill directory")
51
+ if args.page_budget < 1 or args.page_budget > 4:
52
+ die("page-budget must be 1..4")
53
+
54
+ persist_root.mkdir(parents=True, exist_ok=True)
55
+ payload = {
56
+ "schema_version": 1,
57
+ "skill": "job-application",
58
+ "persist_root": str(persist_root),
59
+ "kb_root": str(kb_root),
60
+ "locale": args.locale,
61
+ "page_budget": args.page_budget,
62
+ "updated_at": datetime.now(timezone.utc).strftime("%Y-%m-%dT%H:%M:%S.000Z"),
63
+ }
64
+ text = json.dumps(payload, ensure_ascii=False, indent=2) + "\n"
65
+ targets = [skill_dir / "config.json", persist_root / "config.json"]
66
+ for target in targets:
67
+ target.write_text(text, encoding="utf-8")
68
+ print(target)
69
+
70
+
71
+ if __name__ == "__main__":
72
+ main()
@@ -0,0 +1,10 @@
1
+ # 投递
2
+
3
+ - company:
4
+ - role:
5
+ - date:
6
+ - mode:
7
+ - tailored:
8
+ - speech:
9
+ - questions:
10
+ - improvement:
@@ -0,0 +1,16 @@
1
+ # Brief
2
+
3
+ - company:
4
+ - role:
5
+ - locale:
6
+ - page_budget:
7
+ - jd_source: 用户粘贴 | 非官方原文
8
+ - source_url:
9
+
10
+ ## JD 原文
11
+
12
+ ## 硬门槛
13
+
14
+ ## 核心
15
+
16
+ ## 加分
@@ -0,0 +1,6 @@
1
+ # Changelog
2
+
3
+ 相对 `resume-original.md`,不是相对上一份别的公司的简历。
4
+
5
+ | 原句 | 新句 | 理由 | claim_id | 只是重排 |
6
+ |---|---|---|---|---|
@@ -0,0 +1,15 @@
1
+ # 公司调研
2
+
3
+ 公开事实。不能写进用户的经历子弹。
4
+
5
+ ## 产品与岗位
6
+
7
+ - 来源:
8
+ - 日期:
9
+ - 事实:
10
+
11
+ ## 与 JD 相关的技术栈
12
+
13
+ ## 未核实
14
+
15
+ ## 口播可用的一句
@@ -0,0 +1,11 @@
1
+ # 经历原件
2
+
3
+ 本文件是长文原件,不是投递稿。每条可引用事实在 `evidence-map.md` 有 `C-xxx`。
4
+
5
+ ## 身份
6
+
7
+ ## 时间线
8
+
9
+ ## 项目与工作
10
+
11
+ ## 未决冲突
@@ -0,0 +1,5 @@
1
+ # Evidence map
2
+
3
+ | claim_id | 陈述 | source | 摘录 | 层级 |
4
+ |---|---|---|---|---|
5
+ | C-001 | | src-0001 | | 事实 |
@@ -0,0 +1,6 @@
1
+ # 预批准表述
2
+
3
+ 用户点头之前,敏感口径留在这里,不进投递稿。
4
+
5
+ | 主题 | 允许怎么说 | 禁止怎么说 |
6
+ |---|---|---|
@@ -0,0 +1,16 @@
1
+ # 提升计划
2
+
3
+ ## A. 呈现
4
+
5
+ | 项 | 7 天内怎么补证 | 补到之前能否进简历 |
6
+ |---|---|---|
7
+
8
+ ## B. 能力
9
+
10
+ | 天数 | 要做的事 | 可验证出口 |
11
+ |---|---|---|
12
+ | 30 | | |
13
+ | 60 | | |
14
+ | 90 | | |
15
+
16
+ ## 不要做
@@ -0,0 +1,4 @@
1
+ # 扫盘记录
2
+
3
+ | 时间 | 文件数 | 新增 | 变化 | 备注 |
4
+ |---|---|---|---|---|
@@ -0,0 +1,4 @@
1
+ # 已知缺口
2
+
3
+ | 缺口 | 为什么现在不能写进简历 | 要补的证据 |
4
+ |---|---|---|
@@ -0,0 +1,21 @@
1
+ # 匹配
2
+
3
+ ## 已覆盖
4
+
5
+ | JD 要求 | claim_id | 原件位置 |
6
+ |---|---|---|
7
+
8
+ ## 翻译后覆盖
9
+
10
+ | JD 用词 | 语料里的真事 | claim_id |
11
+ |---|---|---|
12
+
13
+ ## 诚实缺口
14
+
15
+ | JD 要求 | 库里没有什么 |
16
+ |---|---|
17
+
18
+ ## 不写入
19
+
20
+ | 内容 | 原因 |
21
+ |---|---|
@@ -0,0 +1,10 @@
1
+ # 方法缓存
2
+
3
+ 只存公开的简历与面试写法,不存用户经历。用户没有要求刷新时不要改这份文件。
4
+
5
+ ## 来源
6
+
7
+ | 主题 | URL | 日期 | 采用的规则 |
8
+ |---|---|---|---|
9
+
10
+ ## 明确不采用
@@ -0,0 +1,11 @@
1
+ # 岗位投递
2
+
3
+ - persist_root:
4
+ - kb_root:
5
+ - locale:
6
+ - page_budget:
7
+ - corpus 更新:
8
+ - 投递:
9
+
10
+ | 日期 | 公司 | 岗位 | 目录 | 状态 |
11
+ |---|---|---|---|---|
@@ -0,0 +1,21 @@
1
+ # Profile
2
+
3
+ 1. 身份
4
+ 2. 头条与目标岗位
5
+ 3. 摘要候选
6
+ 4. 经历快照
7
+ 5. 经历深挖
8
+ 6. 教育
9
+ 7. 证书与考试
10
+ 8. 技术技能
11
+ 9. 领域经验
12
+ 10. 带人与协作
13
+ 11. 公开产物
14
+ 12. 语言
15
+ 13. 奖项
16
+ 14. 志愿与社团
17
+ 15. 兴趣
18
+ 16. 到岗与工作许可
19
+ 17. 成就库
20
+ 18. 已知缺口
21
+ 19. 预批准表述
@@ -0,0 +1,22 @@
1
+ # 预测题
2
+
3
+ ## 开场与动机
4
+
5
+ ### Q1
6
+
7
+ - 为什么会被问:
8
+ - story-id:
9
+ - 30 秒:
10
+ - 2 分钟:
11
+ - 追问:
12
+ - 不会时:
13
+
14
+ ## 项目深挖
15
+
16
+ ## 技术或专业
17
+
18
+ ## 行为
19
+
20
+ ## 缺口与风险
21
+
22
+ ## 反问建议
@@ -0,0 +1,10 @@
1
+ # 原件切片
2
+
3
+ 本轮选用、尚未改写的经历。句子保持语料原口径,只做取舍。
4
+
5
+ ## 选用
6
+
7
+ ## 本轮不写
8
+
9
+ | 内容 | 原因 |
10
+ |---|---|
@@ -0,0 +1,21 @@
1
+ # 姓名
2
+
3
+ 城市 · 邮箱 · 电话 · 链接
4
+
5
+ 目标岗位
6
+
7
+ ## 摘要
8
+
9
+ ## 经历
10
+
11
+ ### 公司 · 职级
12
+
13
+ 时间
14
+
15
+ - 做成了什么,用什么衡量,靠什么做到。 <!-- claim:C-001 -->
16
+
17
+ ## 项目
18
+
19
+ ## 技能
20
+
21
+ ## 教育
@@ -0,0 +1,6 @@
1
+ # 源索引
2
+
3
+ 脚本只写 `manifest.json`。这份索引由 agent 在扫盘后填写,用来决定回读哪些原文。
4
+
5
+ | id | relpath | status | 要读 |
6
+ |---|---|---|---|
@@ -0,0 +1,19 @@
1
+ # 自我介绍
2
+
3
+ - 目标时长: 180–240 秒
4
+ - 短版时长: 60–90 秒
5
+ - 绑定投递稿:
6
+ - 绑定故事:
7
+
8
+ ## 口播正本
9
+
10
+ ## 短版
11
+
12
+ ## 被打断时的接法
13
+
14
+ ## 数字与投递稿对照
15
+
16
+ | 口播里的数字 | claim_id | 投递稿位置 |
17
+ |---|---|---|
18
+
19
+ ## 不要讲
@@ -0,0 +1,9 @@
1
+ # 故事库
2
+
3
+ ## S-01
4
+
5
+ - claim:
6
+ - Situation:
7
+ - Task:
8
+ - Action:
9
+ - Result:
@@ -0,0 +1,11 @@
1
+ # 本轮故事
2
+
3
+ 只收本轮投递稿会用到的故事。完整库在 `corpus/stories.md`。
4
+
5
+ ## S-01
6
+
7
+ - claim_id:
8
+ - 对应 bullet:
9
+ - 30 秒:
10
+ - 2 分钟:
11
+ - 不要展开:
@@ -0,0 +1,4 @@
1
+ # 优势
2
+
3
+ | 证据 claim_id | 行为 | 能力 | 可对上的岗位信号 |
4
+ |---|---|---|---|
@@ -0,0 +1,7 @@
1
+ # 风格
2
+
3
+ - locale:
4
+ - page_budget:
5
+ - 禁用词:
6
+ - 是否要照片:
7
+ - 是否要英文稿:
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Ting'an Wang
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,9 @@
1
+ # 来源与权利
2
+
3
+ 本技能是 wta-skills-hub 的独立写作技能。它不是 ASD-STE100 官方文件,也不构成合规认证。
4
+
5
+ - 中文汇报规则改编自 [dualface/ste-zh](https://github.com/dualface/ste-zh)(MIT,Copyright (c) 2026 dualface)。规则编号 R1–R25 沿用该项目的自定编号,不对应 ASD-STE100 原文条号。
6
+ - 英文模式吸收公开 skill 的工作方式:strict / STE-flavored(danyuchn/asd-ste100-skill)、80% pragmatic(JAICHANGPARK/ASD-STE100,受 Karpathy 公开建议启发)、意义优先于用词(nuelcyoung/asd-ste100)。只吸收模式,不复制这些仓库的词典或检查器。
7
+ - 受控中文的包装动词与长定语检查点参考 mzopedia/simplified-technical-chinese 的公开方法(规范 CC BY 4.0)。本技能不收录其词表。
8
+ - ASD-STE100 与 Simplified Technical English 的权利属于 ASD(Aerospace, Security and Defence Industries Association of Europe)。现行公开版本为 Issue 9(2025-01-15):Part 1 为 53 条写作规则、9 节;Part 2 为约 900 个核准词。原文免费申请:https://www.asd-ste100.org/ 。本技能不收录标准原文,也不收录核准词表。
9
+ - 通过本技能或任何 linter 不等于 STEMG 认可的合规。最终文本由人签字。