@codacy/verity-cli 0.31.1-experimental.be74f71 → 0.31.2
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/CHANGELOG.md +27 -0
- package/bin/verity.js +1479 -426
- package/data/skills/verity-analyze/SKILL.md +7 -0
- package/data/skills/verity-feedback/SKILL.md +6 -0
- package/data/skills/verity-insights/SKILL.md +7 -0
- package/data/skills/verity-learn/SKILL.md +6 -0
- package/data/skills/verity-memory/SKILL.md +7 -0
- package/data/skills/verity-reflect/SKILL.md +6 -0
- package/data/skills/verity-setup/SKILL.md +12 -5
- package/data/skills/verity-status/SKILL.md +6 -0
- package/package.json +1 -1
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: >-
|
|
3
|
+
Run an independent AI review of the current change on demand — a second opinion on quality,
|
|
4
|
+
security, and whether the code matches its stated intent. Use when the user asks to review,
|
|
5
|
+
check, or analyze code before committing, or to get an independent check on work you have
|
|
6
|
+
just finished.
|
|
7
|
+
---
|
|
1
8
|
# /verity-analyze — Run Verity analysis on demand
|
|
2
9
|
|
|
3
10
|
You are running an on-demand Verity analysis. This is like a "second opinion" — the user (or you) can invoke it at any point to get a quality and security review with rich context.
|
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: >-
|
|
3
|
+
Report project quality metrics from accumulated run data, and manage the Standard's evolution
|
|
4
|
+
suggestions. Use when the user asks for quality trends or metrics, or whether the Standard
|
|
5
|
+
should change.
|
|
6
|
+
disable-model-invocation: true
|
|
7
|
+
---
|
|
1
8
|
# /verity-insights — Project quality insights and Standard evolution
|
|
2
9
|
|
|
3
10
|
Surface metrics from accumulated run data and manage Standard evolution suggestions.
|
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: >-
|
|
3
|
+
View and manage the durable project knowledge Verity has accumulated — decisions, patterns,
|
|
4
|
+
gotchas, and conventions extracted from past analysis runs. Use when the user asks what
|
|
5
|
+
Verity has learned, or before changing an area of the code you do not know.
|
|
6
|
+
---
|
|
1
7
|
# /verity-learn — View and manage project knowledge
|
|
2
8
|
|
|
3
9
|
Project knowledge is durable insights extracted from analysis runs — decisions, patterns, gotchas, and conventions. When the memory graph is enabled (`memory_graph_enabled`), this skill delegates to the graph. Otherwise, it uses flat lessons.
|
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: >-
|
|
3
|
+
Browse, query, and extend the project knowledge graph at .verity/memory/ — typed nodes and
|
|
4
|
+
edges covering decisions, patterns, security constraints, and gotchas. Use to pull prior
|
|
5
|
+
context on files you are about to change, or when the user asks to record or inspect project
|
|
6
|
+
knowledge.
|
|
7
|
+
---
|
|
1
8
|
# /verity-memory — Manage the project knowledge graph
|
|
2
9
|
|
|
3
10
|
The memory graph is a collection of markdown nodes at `.verity/memory/` organized into 8 domains. Each node has YAML frontmatter with typed edges that form a graph. The graph is the project's accumulated knowledge — decisions, patterns, gotchas, security constraints, and more.
|
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: >-
|
|
3
|
+
Capture a durable learning at the end of a task: draft a concrete, cited observation from
|
|
4
|
+
what actually happened, then confirm it with the user or record it directly. Use at natural
|
|
5
|
+
task-completion moments, or when the user asks to record a lesson.
|
|
6
|
+
---
|
|
1
7
|
# /verity-reflect — Capture learnings after a task
|
|
2
8
|
|
|
3
9
|
At a natural task-completion moment, **the agent reflects first** — draft a
|
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: >-
|
|
3
|
+
Configure Verity for this project: create or update the project Standard, wire the
|
|
4
|
+
static-analysis tools, and authenticate. Use when setting Verity up for the first time, or
|
|
5
|
+
when the user asks to change quality rules, severity thresholds, or which analysis tools run.
|
|
6
|
+
disable-model-invocation: true
|
|
7
|
+
---
|
|
1
8
|
# /verity-setup — Configure Verity for this project
|
|
2
9
|
|
|
3
10
|
You are finishing Verity's setup: the half that needs a model.
|
|
@@ -17,7 +24,7 @@ skill reconciled hooks init had just installed, silently removing them.
|
|
|
17
24
|
3. Write `.codacy/codacy.config.json` with curated, validated pattern ids (Step 5).
|
|
18
25
|
4. Upload both, seed the knowledge base, write `VERITY.md` (Steps 7–8).
|
|
19
26
|
|
|
20
|
-
**Reference files** (
|
|
27
|
+
**Reference files** (bundled alongside this skill, at `${CLAUDE_SKILL_DIR}`):
|
|
21
28
|
- `patterns-reference.yaml` — Research-backed patterns catalog (quality, security, language-specific)
|
|
22
29
|
- `standard-template.yaml` — YAML skeleton for the Standard
|
|
23
30
|
|
|
@@ -125,7 +132,7 @@ user's decision to make at a terminal.
|
|
|
125
132
|
|
|
126
133
|
## Step 4: Synthesize the Standard
|
|
127
134
|
|
|
128
|
-
Read
|
|
135
|
+
Read `${CLAUDE_SKILL_DIR}/patterns-reference.yaml` and `${CLAUDE_SKILL_DIR}/standard-template.yaml`.
|
|
129
136
|
|
|
130
137
|
Generate `.verity/standard.yaml` by filling in the template:
|
|
131
138
|
|
|
@@ -198,7 +205,7 @@ it from the installed adapter. Then **always validate** (next section).
|
|
|
198
205
|
|
|
199
206
|
```bash
|
|
200
207
|
# balanced/thorough: critical + high vulns, secrets, malicious packages
|
|
201
|
-
node
|
|
208
|
+
node ${CLAUDE_SKILL_DIR}/validate-patterns.mjs --emit Trivy \
|
|
202
209
|
'^Trivy_(secret|malicious_packages|vulnerability_(critical|high))$'
|
|
203
210
|
|
|
204
211
|
# lightweight: drop malicious_packages if you want the minimum
|
|
@@ -383,7 +390,7 @@ alongside this skill. It checks every `patternId` against the IDs the installed
|
|
|
383
390
|
adapters actually define, and exits non-zero on any that does not exist:
|
|
384
391
|
|
|
385
392
|
```bash
|
|
386
|
-
node
|
|
393
|
+
node ${CLAUDE_SKILL_DIR}/validate-patterns.mjs
|
|
387
394
|
```
|
|
388
395
|
|
|
389
396
|
Expected output:
|
|
@@ -451,7 +458,7 @@ disabled tool produces the same zero findings as clean code, so a quiet run prov
|
|
|
451
458
|
nothing on its own:
|
|
452
459
|
|
|
453
460
|
```bash
|
|
454
|
-
node
|
|
461
|
+
node ${CLAUDE_SKILL_DIR}/validate-patterns.mjs
|
|
455
462
|
```
|
|
456
463
|
|
|
457
464
|
Then confirm the volume is sane:
|
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: >-
|
|
3
|
+
Show Verity quality status for this project: Standard version, last run summary, quality
|
|
4
|
+
trend, and pending items. Use when the user asks how the project is doing, what Verity found
|
|
5
|
+
recently, or whether the gate is passing.
|
|
6
|
+
---
|
|
1
7
|
# /verity-status — Show Verity quality status
|
|
2
8
|
|
|
3
9
|
You are showing the current Verity quality status for this project. This gives a quick overview of project health without running a new analysis.
|