@hdwebsoft/hdcode-ai-darwin-x64 0.0.7 → 0.0.8
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/bin/hdcode +0 -0
- package/bin/index.js.map +1 -1
- package/bin/worker.js.map +1 -1
- package/package.json +1 -1
- package/resources/agents/finder.md +1 -1
- package/resources/agents/mermaid.md +1 -1
- package/resources/skills/hd-code-review/CODING_STANDARDS.md +14 -114
- package/resources/skills/hd-code-review/REVIEW_STANDARDS.md +76 -0
- package/resources/skills/hd-code-review/SKILL.md +314 -90
- package/resources/skills/hd-code-review/reference/review-checklist.md +104 -101
- package/resources/skills/hd-code-review/reference/stacks/apex.md +49 -0
- package/resources/skills/hd-code-review/reference/stacks/aura.md +39 -0
- package/resources/skills/hd-code-review/reference/stacks/cakephp.md +50 -0
- package/resources/skills/hd-code-review/reference/stacks/django.md +53 -0
- package/resources/skills/hd-code-review/reference/stacks/dotnet.md +52 -0
- package/resources/skills/hd-code-review/reference/stacks/expo.md +39 -0
- package/resources/skills/hd-code-review/reference/stacks/flutter.md +48 -0
- package/resources/skills/hd-code-review/reference/stacks/go.md +51 -0
- package/resources/skills/hd-code-review/reference/stacks/laravel.md +56 -0
- package/resources/skills/hd-code-review/reference/stacks/lwc.md +49 -0
- package/resources/skills/hd-code-review/reference/stacks/nodejs.md +51 -0
- package/resources/skills/hd-code-review/reference/stacks/php.md +52 -0
- package/resources/skills/hd-code-review/reference/stacks/python.md +50 -0
- package/resources/skills/hd-code-review/reference/stacks/react.md +51 -0
- package/resources/skills/hd-code-review/reference/stacks/reactnative.md +54 -0
- package/resources/skills/hd-code-review/reference/stacks/scala.md +48 -0
- package/resources/skills/hd-code-review/reference/stacks/visualforce.md +38 -0
- package/resources/skills/hd-code-review/reference/stacks/vuejs.md +52 -0
- package/resources/skills/hd-code-review/reference/stacks/wordpress.md +54 -0
- package/resources/skills/hd-daily-goals/SKILL.md +41 -9
- package/resources/skills/hd-daily-goals/reference/ticket-autofill.md +104 -0
- package/resources/skills/hd-daily-goals/reference/validation-rules.md +13 -0
- package/resources/skills/hd-daily-report/SKILL.md +70 -14
- package/resources/skills/hd-daily-report/reference/sample-report-qc.md +44 -0
- package/resources/skills/hd-daily-report/reference/sample-report.md +18 -15
- package/resources/skills/hd-daily-report/reference/validation-rules.md +28 -7
- package/resources/skills/hd-daily-viewer/SKILL.md +222 -0
- package/resources/skills/hd-docs-init/SKILL.md +33 -0
- package/resources/skills/hd-docs-parse/SKILL.md +2 -0
- package/resources/skills/hd-docs-parse/scripts/parse_document.py +6 -0
- package/resources/skills/hd-docs-sync/SKILL.md +65 -3
- package/resources/skills/hd-docs-sync/reference/doc-mapping.md +1 -0
- package/resources/skills/hd-help/SKILL.md +24 -0
- package/resources/skills/hd-help/reference/skill-map.md +122 -7
- package/resources/skills/hd-iso/SKILL.md +409 -0
- package/resources/skills/hd-iso/reference/iso-27001-requirements.md +166 -0
- package/resources/skills/hd-iso/reference/iso-9001-requirements.md +91 -0
- package/resources/skills/hd-iso/reference/role-profiles.md +115 -0
- package/resources/skills/hd-iso-ready/SKILL.md +146 -0
- package/resources/skills/hd-iso-sync/SKILL.md +217 -0
- package/resources/skills/hd-iso-sync/reference/frontmatter-schema.md +89 -0
- package/resources/skills/hd-iso-verify/SKILL.md +294 -0
- package/resources/skills/hd-issue-resolution/SKILL.md +20 -0
- package/resources/skills/hd-task/SKILL.md +12 -0
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
description: Fast, parallel code search agent. Use when you need to find files and code based on functionality or concepts, chain multiple searches, or locate all occurrences of patterns across the codebase.
|
|
3
3
|
mode: subagent
|
|
4
|
-
model: hdwebsoft/claude-haiku-4-5
|
|
4
|
+
model: hdwebsoft/claude-haiku-4-5-20251001
|
|
5
5
|
temperature: 1
|
|
6
6
|
color: "#F59E0B"
|
|
7
7
|
tools:
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
description: Renders Mermaid diagrams for visualizing architecture, workflows, data flows, and code relationships. Use proactively when diagrams convey information better than prose.
|
|
3
3
|
mode: subagent
|
|
4
|
-
model: hdwebsoft/claude-haiku-4-5
|
|
4
|
+
model: hdwebsoft/claude-haiku-4-5-20251001
|
|
5
5
|
temperature: 0.3
|
|
6
6
|
color: "#06B6D4"
|
|
7
7
|
tools:
|
|
@@ -1,45 +1,11 @@
|
|
|
1
1
|
# Coding Standards
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
## Table of Contents
|
|
8
|
-
|
|
9
|
-
1. [Loading Convention](#1-loading-convention)
|
|
10
|
-
2. [Code Style](#2-code-style)
|
|
11
|
-
3. [Project Policies](#3-project-policies)
|
|
12
|
-
4. [Project Override Convention](#4-project-override-convention)
|
|
13
|
-
|
|
14
|
-
---
|
|
15
|
-
|
|
16
|
-
## 1. Loading Convention
|
|
17
|
-
|
|
18
|
-
`hd-code-review` loads coding standards using a two-layer inheritance pattern:
|
|
19
|
-
|
|
20
|
-
```
|
|
21
|
-
Layer 1 (always): skills/hd-code-review/CODING_STANDARDS.md ← this file (generic baseline)
|
|
22
|
-
Layer 2 (override): <project-root>/docs/CODING_STANDARDS.md ← project-specific (wins on conflict)
|
|
23
|
-
```
|
|
24
|
-
|
|
25
|
-
**Resolution rules:**
|
|
26
|
-
|
|
27
|
-
- Layer 1 is always loaded first — it provides the generic baseline.
|
|
28
|
-
- If the project has `docs/CODING_STANDARDS.md`, load it as Layer 2.
|
|
29
|
-
- Where both layers define the same section or field, the **project (Layer 2) values win**.
|
|
30
|
-
- Sections present only in Layer 1 and absent from Layer 2 remain active (fallback).
|
|
31
|
-
- Project Layer 2 is **additive and overriding** — it does not replace Layer 1 wholesale; it patches it.
|
|
32
|
-
|
|
33
|
-
**Behavioral contract for the skill:**
|
|
34
|
-
|
|
35
|
-
The skill must explicitly implement this load order. It is not enforced by tooling — it is a behavioral contract. When a project layer exists, the skill should note which standards are active and which policies have `required: yes` set.
|
|
3
|
+
Baseline used by `hd-code-review` (Layer 1). Projects override via `docs/CODING_STANDARDS.md` (Layer 2 wins on conflict).
|
|
36
4
|
|
|
37
5
|
---
|
|
38
6
|
|
|
39
7
|
## 2. Code Style
|
|
40
8
|
|
|
41
|
-
Generic baseline conventions. These serve as defaults when no project override is provided. Projects should replace each placeholder with their actual conventions in `docs/CODING_STANDARDS.md`.
|
|
42
|
-
|
|
43
9
|
### 2.1 Naming Conventions
|
|
44
10
|
|
|
45
11
|
| Element | Convention | Example |
|
|
@@ -53,7 +19,6 @@ Generic baseline conventions. These serve as defaults when no project override i
|
|
|
53
19
|
| Database columns | snake_case | `created_at`, `user_id` |
|
|
54
20
|
| Environment variables | UPPER_SNAKE_CASE | `DATABASE_URL`, `JWT_SECRET` |
|
|
55
21
|
|
|
56
|
-
> Replace these placeholders with project-specific naming conventions in `docs/CODING_STANDARDS.md`.
|
|
57
22
|
|
|
58
23
|
### 2.2 Patterns to Follow
|
|
59
24
|
|
|
@@ -64,7 +29,6 @@ Generic baseline conventions. These serve as defaults when no project override i
|
|
|
64
29
|
- Immutability by default: prefer immutable data structures where the language supports it
|
|
65
30
|
- Dependency injection over global state
|
|
66
31
|
|
|
67
|
-
> Projects should extend this list with patterns specific to their stack and architecture.
|
|
68
32
|
|
|
69
33
|
### 2.3 Patterns to Avoid
|
|
70
34
|
|
|
@@ -76,7 +40,6 @@ Generic baseline conventions. These serve as defaults when no project override i
|
|
|
76
40
|
- `any` type in TypeScript without justification
|
|
77
41
|
- Swallowed errors (empty catch blocks)
|
|
78
42
|
|
|
79
|
-
> Projects should add language-specific and framework-specific anti-patterns to `docs/CODING_STANDARDS.md`.
|
|
80
43
|
|
|
81
44
|
### 2.4 Project-Specific Patterns
|
|
82
45
|
|
|
@@ -93,9 +56,7 @@ _Empty at base level — defined by the project in `docs/CODING_STANDARDS.md`._
|
|
|
93
56
|
|
|
94
57
|
## 3. Project Policies
|
|
95
58
|
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
**At base level, all policies are `required: no`.** Projects promote policies to `required: yes` in their `docs/CODING_STANDARDS.md` override. When a policy is `required: yes`, violations are treated as **blockers** by `hd-code-review` (not merely advisory).
|
|
59
|
+
All `required: no` at base level. Projects set `required: yes` to make violations blockers.
|
|
99
60
|
|
|
100
61
|
---
|
|
101
62
|
|
|
@@ -105,14 +66,10 @@ Structured templates for common project-level policies. Each policy records the
|
|
|
105
66
|
feature_flags:
|
|
106
67
|
provider: <LaunchDarkly | Unleash | custom | none>
|
|
107
68
|
required: no
|
|
108
|
-
pattern:
|
|
109
|
-
# Describe how feature flags must be used in code.
|
|
110
|
-
# Example: all new features behind a flag for incremental rollout.
|
|
111
|
-
# Example pattern:
|
|
112
|
-
# if (featureFlag.isEnabled('new-checkout-flow', userId)) { ... }
|
|
69
|
+
pattern: ~
|
|
113
70
|
```
|
|
114
71
|
|
|
115
|
-
> When `required: yes
|
|
72
|
+
> When `required: yes`: new user-facing features without a flag = blocker.
|
|
116
73
|
|
|
117
74
|
---
|
|
118
75
|
|
|
@@ -122,15 +79,10 @@ feature_flags:
|
|
|
122
79
|
observability:
|
|
123
80
|
provider: <OpenTelemetry | Datadog | Prometheus | custom | none>
|
|
124
81
|
required: no
|
|
125
|
-
requirement:
|
|
126
|
-
# Describe observability requirements for new code.
|
|
127
|
-
# Example: all new endpoints must emit:
|
|
128
|
-
# - a request counter metric
|
|
129
|
-
# - a latency histogram
|
|
130
|
-
# - a distributed trace span
|
|
82
|
+
requirement: ~
|
|
131
83
|
```
|
|
132
84
|
|
|
133
|
-
> When `required: yes
|
|
85
|
+
> When `required: yes`: new endpoints/workers without metrics+tracing = blocker.
|
|
134
86
|
|
|
135
87
|
---
|
|
136
88
|
|
|
@@ -139,72 +91,20 @@ observability:
|
|
|
139
91
|
```yaml
|
|
140
92
|
i18n:
|
|
141
93
|
required: no
|
|
142
|
-
requirement:
|
|
143
|
-
# No hardcoded user-facing strings in source code.
|
|
144
|
-
# All user-visible text must go through the i18n translation system.
|
|
145
|
-
# Example: use t('key') or i18n.t('namespace.key'), never "Hello World" in JSX.
|
|
94
|
+
requirement: ~
|
|
146
95
|
```
|
|
147
96
|
|
|
148
|
-
> When `required: yes
|
|
97
|
+
> When `required: yes`: hardcoded user-facing strings = blocker.
|
|
149
98
|
|
|
150
99
|
---
|
|
151
100
|
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
Projects extend this file by creating `docs/CODING_STANDARDS.md` at their repo root. `hd-code-review` loads this file as Layer 2 on top of this base.
|
|
155
|
-
|
|
156
|
-
**Scaffolding:** `hd-docs-init` scaffolds `docs/CODING_STANDARDS.md` when bootstrapping a new project's documentation. It creates the file with the project's detected stack and placeholder values.
|
|
157
|
-
|
|
158
|
-
**Maintenance:** `hd-docs-sync` updates `docs/CODING_STANDARDS.md` based on git history and `history/` session logs when code analysis reveals new conventions have been established in the project.
|
|
101
|
+
### 3.4 Accessibility (a11y)
|
|
159
102
|
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
# Project: <project-name>
|
|
165
|
-
# Last updated: YYYY-MM-DD
|
|
166
|
-
|
|
167
|
-
## 2. Code Style
|
|
168
|
-
|
|
169
|
-
### 2.1 Naming Conventions
|
|
170
|
-
# (override naming table here — or omit to inherit base defaults)
|
|
171
|
-
|
|
172
|
-
### 2.4 Project-Specific Patterns
|
|
173
|
-
- All database access must go through repository classes in `src/repositories/`
|
|
174
|
-
- HTTP handlers must use the shared `withErrorHandling()` wrapper
|
|
175
|
-
- All async functions must be explicitly typed with return types (no implicit Promise<any>)
|
|
176
|
-
|
|
177
|
-
## 3. Project Policies
|
|
178
|
-
|
|
179
|
-
### 3.1 Feature Flags
|
|
180
|
-
feature_flags:
|
|
181
|
-
provider: LaunchDarkly
|
|
182
|
-
required: yes
|
|
183
|
-
pattern: |
|
|
184
|
-
Use `ldClient.variation('flag-key', user, false)` for boolean flags.
|
|
185
|
-
Define flag keys as constants in `src/flags.ts`.
|
|
186
|
-
|
|
187
|
-
### 3.2 Observability
|
|
188
|
-
observability:
|
|
189
|
-
provider: OpenTelemetry
|
|
190
|
-
required: yes
|
|
191
|
-
requirement: |
|
|
192
|
-
All new HTTP endpoints must call `metrics.incrementCounter('http.requests', { route })`.
|
|
193
|
-
All new background jobs must create a root trace span via `tracer.startActiveSpan(...)`.
|
|
194
|
-
|
|
195
|
-
### 3.3 Internationalization (i18n)
|
|
196
|
-
i18n:
|
|
197
|
-
required: yes
|
|
198
|
-
requirement: |
|
|
199
|
-
No hardcoded user-visible strings. Use `t('namespace.key')` from react-i18next.
|
|
200
|
-
Add keys to `public/locales/en/translation.json` before using them.
|
|
103
|
+
```yaml
|
|
104
|
+
a11y:
|
|
105
|
+
required: no
|
|
106
|
+
requirement: ~
|
|
201
107
|
```
|
|
202
108
|
|
|
203
|
-
|
|
109
|
+
> When `required: yes`: new UI elements missing ARIA labels/alt text/keyboard support = blocker.
|
|
204
110
|
|
|
205
|
-
| Scenario | Result |
|
|
206
|
-
|----------|--------|
|
|
207
|
-
| Project defines Section 2.4 | Project section used; base Section 2.4 placeholder replaced |
|
|
208
|
-
| Project sets `required: yes` on a policy | Policy becomes a blocker in hd-code-review |
|
|
209
|
-
| Project omits a section entirely | Base layer section remains active |
|
|
210
|
-
| Project adds a new section not in base | Applied additively; base is unchanged |
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
# Review Standards
|
|
2
|
+
|
|
3
|
+
Baseline used by `hd-code-review` (Layer 1). Projects override via `docs/REVIEW_STANDARDS.md` (Layer 2 wins on conflict).
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## 1. Tech Stack
|
|
8
|
+
|
|
9
|
+
```yaml
|
|
10
|
+
tech_stack: ~
|
|
11
|
+
# Default (~): auto-detected from diff file extensions in Phase 4.
|
|
12
|
+
# .cs / .csproj / .sln → dotnet
|
|
13
|
+
# .ts / .js / package.json → nodejs
|
|
14
|
+
# mixed extensions in one diff → all matching presets loaded
|
|
15
|
+
#
|
|
16
|
+
# Override (set explicitly) when auto-detection would be wrong:
|
|
17
|
+
# tech_stack: dotnet ← force single stack
|
|
18
|
+
# tech_stack: [dotnet, nodejs] ← force multiple stacks
|
|
19
|
+
#
|
|
20
|
+
# Available presets: dotnet | nodejs | react | reactnative | expo | vuejs | python | django | go | flutter | php | laravel | cakephp | wordpress | scala | apex | lwc | aura | visualforce
|
|
21
|
+
# (Add more by creating reference/stacks/<name>.md following the existing preset format)
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
> Stack presets live in `reference/stacks/`. Auto-detection means zero config is needed for most projects.
|
|
25
|
+
> Set `tech_stack` explicitly only to override the detected value.
|
|
26
|
+
|
|
27
|
+
---
|
|
28
|
+
|
|
29
|
+
## 2. Aspect Escalations
|
|
30
|
+
|
|
31
|
+
```yaml
|
|
32
|
+
aspect_escalations: []
|
|
33
|
+
# Promote Tier 2 advisory aspects to Tier 1 blocker for this project.
|
|
34
|
+
# Example:
|
|
35
|
+
# - aspect: 12 # Architecture & Design
|
|
36
|
+
# level: blocker
|
|
37
|
+
# - aspect: 5 # Redundancy
|
|
38
|
+
# level: blocker
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
---
|
|
42
|
+
|
|
43
|
+
## 3. Remote URL
|
|
44
|
+
|
|
45
|
+
```yaml
|
|
46
|
+
remote_url: ~
|
|
47
|
+
# Optional. Override the auto-detected git remote URL for generating platform links in findings.
|
|
48
|
+
# Use when the auto-detected remote is wrong, the remote is self-hosted, or git remote is unavailable.
|
|
49
|
+
#
|
|
50
|
+
# Set to the repo's blob base URL — the skill will append /<branch>/<file>#L<line> automatically.
|
|
51
|
+
# Examples:
|
|
52
|
+
# remote_url: "https://github.com/myorg/myrepo"
|
|
53
|
+
# remote_url: "https://gitlab.mycompany.com/myorg/myrepo"
|
|
54
|
+
# remote_url: "https://bitbucket.org/myorg/myrepo"
|
|
55
|
+
#
|
|
56
|
+
# Leave as ~ to use auto-detection from `git remote get-url origin`.
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
---
|
|
60
|
+
|
|
61
|
+
## 4. Custom Aspects
|
|
62
|
+
|
|
63
|
+
```yaml
|
|
64
|
+
custom_aspects: []
|
|
65
|
+
# Add project-specific review dimensions beyond the 12 universal aspects.
|
|
66
|
+
# Example:
|
|
67
|
+
# - name: "API Documentation"
|
|
68
|
+
# tier: 2 # 1 = run in Tier 1 (blocker-prone), 2 = Tier 2 (advisory)
|
|
69
|
+
# check: "New public endpoints must have JSDoc annotations and appear in OpenAPI spec"
|
|
70
|
+
# trigger: advisory # advisory | blocker
|
|
71
|
+
#
|
|
72
|
+
# - name: "Repository Pattern"
|
|
73
|
+
# tier: 1
|
|
74
|
+
# check: "Database access must go through the repository layer — no direct DbContext in controllers"
|
|
75
|
+
# trigger: blocker
|
|
76
|
+
```
|