@1aboveio/skills 0.20.2 → 0.20.3

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 (85) hide show
  1. package/README.md +12 -5
  2. package/package.json +1 -1
  3. package/runtime/skills/distribution/generated/recipes.json +220 -25
  4. package/runtime/skills/distribution/scripts/bundles.mjs +49 -5
  5. package/runtime/skills/engineering/engineering-runtime/scripts/workflow-coherence.mjs +4 -0
  6. package/runtime/skills/engineering/engineering-runtime/scripts/workflow-policy.mjs +1 -1
  7. package/skills/compliance/compliance-audit/LICENSE +3 -0
  8. package/skills/compliance/compliance-audit/SKILL.md +466 -0
  9. package/skills/compliance/compliance-audit/references/findings-schema.md +290 -0
  10. package/skills/compliance/compliance-audit/references/vars-checklist.md +1068 -0
  11. package/skills/compliance/compliance-audit/references/vars-findings-schema.md +395 -0
  12. package/skills/compliance/compliance-audit/scripts/reconcile_tracker.py +454 -0
  13. package/skills/compliance/compliance-audit/scripts/test_validate_tracker.py +90 -0
  14. package/skills/compliance/compliance-audit/scripts/validate_tracker.py +752 -0
  15. package/skills/compliance/doc-authenticity/LICENSE +3 -0
  16. package/skills/compliance/doc-authenticity/SKILL.md +158 -0
  17. package/skills/compliance/doc-authenticity/references/agreement.md +66 -0
  18. package/skills/compliance/doc-authenticity/references/bank-statement.md +150 -0
  19. package/skills/compliance/doc-authenticity/references/forensic-signals.md +157 -0
  20. package/skills/compliance/doc-authenticity/references/image-signals.md +114 -0
  21. package/skills/compliance/doc-authenticity/references/invoice.md +66 -0
  22. package/skills/compliance/doc-authenticity/references/issuer-profiles.md +86 -0
  23. package/skills/compliance/doc-authenticity/references/verdict-and-report.md +95 -0
  24. package/skills/compliance/doc-authenticity/references/verdict.schema.json +81 -0
  25. package/skills/compliance/doc-authenticity/scripts/image_forensics.py +294 -0
  26. package/skills/compliance/doc-authenticity/scripts/pdf_forensics.py +401 -0
  27. package/skills/compliance/doc-authenticity/scripts/validate_codes.py +224 -0
  28. package/skills/compliance/doc-authenticity/scripts/validate_verdict.py +308 -0
  29. package/skills/compliance/report-writing/LICENSE +3 -0
  30. package/skills/compliance/report-writing/SKILL.md +206 -0
  31. package/skills/compliance/report-writing/references/audit-report-template.md +121 -0
  32. package/skills/compliance/report-writing/references/external-assessment-template.md +167 -0
  33. package/skills/compliance/report-writing/references/management-report-template.md +145 -0
  34. package/skills/compliance/report-writing/references/vars-report-template.md +224 -0
  35. package/skills/document-utils/doc-to-md/LICENSE +3 -0
  36. package/skills/document-utils/doc-to-md/SKILL.md +77 -0
  37. package/skills/document-utils/doc-to-md/scripts/convert.py +157 -0
  38. package/skills/document-utils/reg-parser/LICENSE +3 -0
  39. package/skills/document-utils/reg-parser/SKILL.md +201 -0
  40. package/skills/document-utils/reg-parser/references/checklist-schema.md +223 -0
  41. package/skills/document-utils/reg-parser/references/checklists/hk-amlo-checklist.json +1306 -0
  42. package/skills/document-utils/reg-parser/references/checklists/hk-amlo-checklist.md +469 -0
  43. package/skills/document-utils/reg-parser/references/checklists/hk-fi-corporate-onboarding-cdd-checklist.json +634 -0
  44. package/skills/document-utils/reg-parser/references/checklists/hk-fi-corporate-onboarding-cdd-checklist.md +233 -0
  45. package/skills/document-utils/reg-parser/references/checklists/hk-mso-guideline-checklist.json +2194 -0
  46. package/skills/document-utils/reg-parser/references/checklists/hk-mso-guideline-checklist.md +771 -0
  47. package/skills/document-utils/reg-parser/references/checklists/kyc-aml-checklist.md +258 -0
  48. package/skills/document-utils/reg-parser/references/checklists/visa-vars-checklist.md +1058 -0
  49. package/skills/document-utils/reg-parser/references/mandates/hk-amlo-cap615.md +389 -0
  50. package/skills/document-utils/reg-parser/references/mandates/visa-vars.md +205 -0
  51. package/skills/document-utils/reg-parser/scripts/compare_checklist.py +228 -0
  52. package/skills/document-utils/reg-parser/scripts/dump_checklist.py +348 -0
  53. package/skills/document-utils/reg-parser/scripts/preprocess-mandate.sh +171 -0
  54. package/skills/document-utils/reg-parser/scripts/test_quarantine.sh +102 -0
  55. package/skills/document-utils/reg-parser/scripts/validate_checklist.py +532 -0
  56. package/skills/document-utils/reg-parser/scripts/validate_mandate.py +242 -0
  57. package/skills/engineering/engineering-runtime/coherence/workflow.json +16 -16
  58. package/skills/engineering/engineering-runtime/scripts/workflow-coherence.mjs +4 -0
  59. package/skills/engineering/engineering-runtime/scripts/workflow-policy.mjs +1 -1
  60. package/skills/payment/similar-domain/LICENSE +3 -0
  61. package/skills/payment/similar-domain/SKILL.md +178 -0
  62. package/skills/payment/similar-domain/references/entities.md +58 -0
  63. package/skills/payment/similar-domain/references/fingerprints.md +82 -0
  64. package/skills/payment/similar-domain/references/pivots.md +66 -0
  65. package/skills/payment/similar-domain/references/report-template.md +76 -0
  66. package/skills/payment/similar-domain/references/scoring.md +61 -0
  67. package/skills/payment/similar-domain/references/terminology.md +37 -0
  68. package/skills/payment/similar-domain/references/workflow.md +79 -0
  69. package/skills/payment/tld-detection/SKILL.md +76 -21
  70. package/skills/payment/tld-detection/references/clean.md +1 -1
  71. package/skills/payment/tld-detection/references/clustering.md +21 -6
  72. package/skills/payment/tld-detection/references/decision.md +7 -2
  73. package/skills/payment/tld-detection/references/fx-conversion.md +229 -0
  74. package/skills/payment/tld-detection/references/report-template.md +63 -27
  75. package/skills/payment/tld-detection/references/streams.md +90 -0
  76. package/skills/payment/tld-detection/references/terminology.md +15 -7
  77. package/skills/payment/tld-detection/references/workflow.md +1 -1
  78. package/skills/payment/tld-detection/scripts/detect_streams.py +542 -0
  79. package/skills/engineering/ensure-coverage/evals/evals.json +0 -125
  80. package/skills/engineering/rush-issues/evals/evals.json +0 -65
  81. package/skills/engineering/rush-release/evals/evals.json +0 -58
  82. package/skills/fullstack/shadcn/evals/evals.json +0 -90
  83. package/skills/payment/fraud-analysis/evals/evals.json +0 -40
  84. package/skills/payment/tld-detection/evals/evals.json +0 -107
  85. package/skills/payment/tld-detection/tests/test_detect_ladders.py +0 -132
@@ -0,0 +1,290 @@
1
+ # Assessment Tracker Schema (Generic)
2
+
3
+ Output schema for non-VARS compliance audits (AML, KYC, financial reporting,
4
+ local-regulator frameworks, etc.). The deliverable is a **tracker** — a
5
+ worksheet with one row per Control ID — not a narrative findings report.
6
+
7
+ For VARS audits use `vars-findings-schema.md` instead.
8
+
9
+ ## Output Files
10
+
11
+ Two files per audit:
12
+
13
+ 1. `tracker.md` — the deliverable. One row per `Control ID`.
14
+ 2. `phase-trail.md` — audit work product. Per-Control-ID record showing what each phase (`document_review`, `onsite_review`, `sample_test`) found, preserved as-is for audit defensibility.
15
+
16
+ The tracker is the artifact handed to the client; the phase trail is internal.
17
+
18
+ ## Tracker Columns
19
+
20
+ | Column | Owner | Stage | Notes |
21
+ |---|---|---|---|
22
+ | Control ID | — | Checklist | e.g. `KYC.C3.2` |
23
+ | Title | — | Checklist | Short control title |
24
+ | Status | Reviewer | Final assessment | `PASS` / `FAIL` / `PARTIAL` / `NOT_APPLICABLE` |
25
+ | Effectiveness | Reviewer | Final assessment | `Green` / `Amber` / `Red` / `N/A` |
26
+ | Severity | Reviewer | Final assessment | From checklist if assigned, else derived (rubric below) |
27
+ | Observation | Reviewer | Final assessment | One sentence — what was found |
28
+ | Gap | Reviewer | Final assessment | One sentence — what's missing or weak. `—` for `PASS`. |
29
+ | Recommendation | Reviewer | Final assessment | One-line remediation pointer or `Recommended Action Ref` |
30
+ | Recommended Action Ref | Reviewer | Final assessment | Optional `best-practice://[Control ID]` link if a co-located repository exists |
31
+
32
+ ## Audit Metadata Header
33
+
34
+ `tracker.md` opens with a metadata block:
35
+
36
+ ```markdown
37
+ # Compliance Assessment Tracker
38
+
39
+ - **Date:** YYYY-MM-DD
40
+ - **Auditor:** [name]
41
+ - **Scope:** full | targeted: [control groups]
42
+ - **Checklist:** [checklist name / version / file path]
43
+ - **System/Process Under Audit:** [description]
44
+ - **Audit Phases Completed:** [document_review, onsite_review, sample_test]
45
+ ```
46
+
47
+ No executive summary, no Critical & Major Gaps roll-up, no Recommendations Summary section. The tracker is filterable; aggregation happens off the tracker.
48
+
49
+ ## Tracker Format
50
+
51
+ Single markdown table. One row per Control ID.
52
+
53
+ ```markdown
54
+ | Control ID | Title | Status | Effectiveness | Severity | Observation | Gap | Recommendation | Recommended Action Ref |
55
+ |------------|-------|--------|---------------|----------|-------------|-----|----------------|------------------------|
56
+ | KYC.C3.2 | Sanctions Screening at Onboarding | PARTIAL | Amber | MAJOR | OFAC screening mandated in SOP section 4.3; vendor scope confirms OFAC + UN only. | EU sanctions list and local PEP list coverage absent from policy and vendor scope. | Extend vendor scope and revise SOP section 4.3 to include EU and local PEP lists. | — |
57
+ | KYC.C5.1 | Beneficial Ownership Verification | FAIL | Red | CRITICAL | No procedure for verifying UBO above 25% threshold. | Policy silent on UBO verification entirely. | Adopt UBO verification SOP aligned with FATF guidance. | best-practice://KYC.C5.1 |
58
+ ```
59
+
60
+ ## Phase Trail Companion (`phase-trail.md`)
61
+
62
+ Audit work product. One block per Control ID, preserves what each phase saw before the final tracker row was assembled.
63
+
64
+ ```markdown
65
+ # Phase Trail
66
+
67
+ ### [Control ID]: [Control Title]
68
+
69
+ - **Archetype:** [if applicable, else N/A]
70
+ - **Requirement:** [short requirement statement]
71
+
72
+ #### document_review
73
+ - **Status:** PASS | FAIL | PARTIAL | NOT_APPLICABLE
74
+ - **Control Effectiveness:** Green | Amber | Red | N/A
75
+ - **Observation:** [What was found]
76
+ - **Evidence:** [Documents reviewed]
77
+ - **Gap:** [Missing or weak elements]
78
+ - **Adjustment Note:** [How this phase changed the assessment, if applicable]
79
+
80
+ #### onsite_review
81
+ - **Status:** …
82
+ - **Control Effectiveness:** …
83
+ - **Observation:** …
84
+ - **Evidence:** [Interview records / walkthrough evidence]
85
+ - **Gap:** …
86
+ - **Adjustment Note:** …
87
+
88
+ #### sample_test
89
+ - **Status:** …
90
+ - **Control Effectiveness:** …
91
+ - **Observation:** …
92
+ - **Evidence:** [Sample IDs, transactions, screenshots]
93
+ - **Gap:** …
94
+ - **Adjustment Note:** …
95
+ ```
96
+
97
+ Only include the phases that ran. Do not erase phase records when the tracker row is finalised.
98
+
99
+ ## Field Definitions
100
+
101
+ ### Status
102
+ - `PASS` — evidence satisfies the control.
103
+ - `FAIL` — evidence is missing, insufficient, or contradicts the requirement.
104
+ - `PARTIAL` — some aspects met, gaps remain.
105
+ - `NOT_APPLICABLE` — control does not apply to scope.
106
+
107
+ ### Severity
108
+
109
+ If the source checklist assigns a severity per control, carry that value through unchanged. Otherwise derive from final Status × Effectiveness:
110
+
111
+ | Status | Effectiveness | Severity |
112
+ |--------|---------------|----------|
113
+ | FAIL | Red | CRITICAL if regulatory / customer / systemic risk; otherwise MAJOR |
114
+ | PARTIAL | Red | MAJOR |
115
+ | PARTIAL | Amber | MINOR |
116
+ | PASS | Amber | OBSERVATION |
117
+ | PASS | Green | — (omit cell) |
118
+ | NOT_APPLICABLE | N/A | — |
119
+
120
+ CRITICAL is reserved for failures needing immediate action (regulator-facing, license-threatening, or active customer harm). When in doubt between CRITICAL and MAJOR, ask the user.
121
+
122
+ This rubric does **not** apply to VARS audits — VARS uses `vars-findings-schema.md`.
123
+
124
+ ### Control Effectiveness
125
+ - `Green` — designed appropriately and operating effectively.
126
+ - `Amber` — exists but needs improvement in design or operation.
127
+ - `Red` — absent, materially ineffective, or insufficient.
128
+ - `N/A` — not applicable.
129
+
130
+ ### Observation
131
+ - State what was found, not what should exist.
132
+ - One sentence. Detail belongs in `phase-trail.md`.
133
+
134
+ ### Gap
135
+ - One sentence describing the deficiency.
136
+ - `—` (or empty) for `PASS`.
137
+
138
+ ### Recommendation / Recommended Action Ref
139
+ - Inline a one-line remediation pointer in `Recommendation`.
140
+ - If a co-located best-practice repository keyed by `Control ID` exists, fill `Recommended Action Ref` with `best-practice://[Control ID]`. Do not invent links.
141
+
142
+ ## Subagent Prompt Template
143
+
144
+ Used by `SKILL.md` Step 6B (per-phase chunking) **and** Step 7 (synthesis chunking).
145
+
146
+ ### Variant A — Phase Review (Step 6B)
147
+
148
+ Each subagent reviews one phase for one control group and outputs phase-trail blocks for those Control IDs.
149
+
150
+ ```text
151
+ You are a compliance auditor. Review the following controls for the specified audit phase.
152
+
153
+ Audit phase: <document_review | onsite_review | sample_test>
154
+ Controls:
155
+ <paste only the checklist rows for these Control IDs>
156
+
157
+ Evidence:
158
+ <paste mapped evidence only>
159
+
160
+ Output format — one block per Control ID:
161
+
162
+ ### <Control ID>: <Control Title>
163
+ - **Status:** PASS | FAIL | PARTIAL | NOT_APPLICABLE
164
+ - **Control Effectiveness:** Green | Amber | Red | N/A
165
+ - **Observation:** What you found in this phase.
166
+ - **Evidence:** Exact artifacts reviewed (document name + section / file path / sample ID).
167
+ - **Gap:** What remains missing or weak. Use "—" for PASS.
168
+ - **Adjustment Note:** How this phase changes or confirms the prior view, if applicable.
169
+
170
+ Rules:
171
+ - Never mark PASS / Green without direct evidence.
172
+ - If evidence is absent or ambiguous, mark the gap and explain why.
173
+ - Output observations only.
174
+ ```
175
+
176
+ Each subagent writes to `phase-<phase>-<group>.md`.
177
+
178
+ ### Variant B — Synthesis (Step 7)
179
+
180
+ Each subagent receives the phase-trail blocks for one control group (across all completed phases) and emits **tracker rows** + the merged phase-trail block per Control ID.
181
+
182
+ ```text
183
+ You are a compliance auditor consolidating an assessment.
184
+
185
+ Controls in scope (this group):
186
+ <paste only the checklist rows for these Control IDs>
187
+
188
+ Phase trail blocks (all completed phases for these Control IDs):
189
+ <paste the phase-trail blocks from phase-<phase>-<group>.md files>
190
+
191
+ Produce two outputs.
192
+
193
+ OUTPUT 1 — tracker rows (markdown table rows only, no header):
194
+ One row per Control ID. Columns:
195
+ | Control ID | Title | Status | Effectiveness | Severity | Observation | Gap | Recommendation | Recommended Action Ref |
196
+
197
+ Rules:
198
+ - Final Status reflects the most operationally-grounded phase available (sample_test > onsite_review > document_review).
199
+ - Severity: carry from checklist if assigned; otherwise derive from Status × Effectiveness using the rubric in findings-schema.md.
200
+ - Observation and Gap: one sentence each. Detail belongs in the merged phase-trail block, not the tracker cell.
201
+ - Recommendation: one-line pointer. Use Recommended Action Ref column for `best-practice://` links only if a repository exists; do not invent links.
202
+
203
+ OUTPUT 2 — merged phase-trail blocks (markdown):
204
+ For each Control ID in this group, output the consolidated phase-trail block in the format defined in findings-schema.md. Preserve all phase records.
205
+
206
+ Output OUTPUT 1 first, then a `---` separator, then OUTPUT 2. No commentary.
207
+ ```
208
+
209
+ Each synthesis subagent writes to `synth-<group>.md` containing both outputs. The main agent splits on `---` and concatenates into `tracker.md` and `phase-trail.md` respectively.
210
+
211
+ ### Variant C — Citation Judge (Step 9C)
212
+
213
+ Independent grounding pass — verifies that every coverage claim's citation actually addresses the requirement. Clean context.
214
+
215
+ ```text
216
+ You are an evidence-grounding reviewer. You verify each coverage claim independently against the cited evidence.
217
+
218
+ Controls in scope (this group):
219
+ <paste checklist rows + requirement text>
220
+
221
+ Tracker rows (Observation + Gap columns):
222
+ <paste rows>
223
+
224
+ Evidence excerpts:
225
+ <paste cited clauses with context>
226
+
227
+ For each Observation bullet citing a clause:
228
+ 1. Locate the cited clause.
229
+ 2. Compare to the Requirement.
230
+ 3. Emit a verdict per cited item:
231
+ - "Confirmed" — directly addresses the requirement.
232
+ - "Weak" — references the topic but does not operationalize.
233
+ - "Off-target" — does not address the requirement.
234
+ - "Missing" — cited clause cannot be located.
235
+
236
+ Produce **two files**, both required so Step 9E can reconcile findings deterministically.
237
+
238
+ `judge-<group>.md` — human-readable bullets, one per cited item under each Control ID.
239
+
240
+ `judge-<group>.json` — machine-readable verdicts, consumed by `scripts/reconcile_tracker.py`:
241
+
242
+ [
243
+ {"control_id": "KYC.C3.2", "item": "1", "verdict": "Confirmed", "reason": ""},
244
+ {"control_id": "KYC.C3.2", "item": "2", "verdict": "Off-target", "reason": "cited section X covers screening cadence, not threshold"}
245
+ ]
246
+
247
+ Rules: use exactly one of Confirmed | Weak | Off-target | Missing. The `item` field is the bare item identifier from the checklist (no "Control " prefix). Skip "Not addressed" bullets — those are not coverage claims. No commentary outside the structured outputs.
248
+ ```
249
+
250
+ Each judge subagent writes both files: `judge-<group>.md` (human) and `judge-<group>.json` (machine).
251
+
252
+ ### Variant D — Adversarial Challenger (Step 9D)
253
+
254
+ Adversarial second pass — clean context, "assume over-claiming" framing.
255
+
256
+ ```text
257
+ You are a senior challenge reviewer. Assume the prior auditor was too generous — they marked items PASS that should be PARTIAL or FAIL.
258
+
259
+ Lens: bare references without operational procedure are weak; vendor contracts without scope are weak; cross-references count only if the target is present and substantive; design-only coverage without operating evidence is design-only.
260
+
261
+ Controls in scope:
262
+ <paste checklist rows + requirement>
263
+
264
+ Tracker rows:
265
+ <paste rows>
266
+
267
+ Evidence excerpts:
268
+ <paste cited clauses + context>
269
+
270
+ For each PASS or PARTIAL row, re-examine the citation against the requirement. If you find a credible challenge, emit it; otherwise write "No challenge" for that control.
271
+
272
+ Output format per Control ID:
273
+ - **Challenge:** <specific weakness with requirement reference and recommended downgrade>
274
+
275
+ Surface concrete, actionable downgrades only.
276
+ ```
277
+
278
+ Each challenger subagent writes to `challenge-<group>.md`.
279
+
280
+ ## Notes for Auditors
281
+
282
+ - **Evidence not yet produced is still PARTIAL.** When a clause is referenced but the readable exhibit hasn't yet been delivered (online policy URL with no attached PDF, signed copy expected but not provided, sample log promised next round), mark the row **PARTIAL** / Amber with a phase note in `phase-trail.md` saying "exhibit not produced — to be reviewed in next round". When the evidence arrives, run a fresh phase (another `document_review`, `onsite_review`, or `sample_test`) — synthesis produces an updated tracker. Do **not** invent a "Pending" status; the phase model is the temporal axis. The conservative rating treatment (PARTIAL lowers severity at minimum to MINOR) keeps fieldwork honest — outstanding exhibits don't quietly inflate a PASS.
283
+
284
+ ## Worked Example — Tracker Slice
285
+
286
+ ```markdown
287
+ | Control ID | Title | Status | Effectiveness | Severity | Observation | Gap | Recommendation | Recommended Action Ref |
288
+ |------------|-------|--------|---------------|----------|-------------|-----|----------------|------------------------|
289
+ | KYC.C3.2 | Sanctions Screening at Onboarding | PARTIAL | Amber | MAJOR | OFAC screening mandated in SOP section 4.3; vendor scope confirms OFAC + UN only. | EU sanctions list and local PEP list coverage absent. | Extend vendor scope and revise SOP section 4.3 to add EU and local PEP lists. | — |
290
+ ```