@erclx/aitk 3.8.0 → 3.10.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/claude/.claude-plugin/plugin.json +1 -1
- package/claude/skills/create-skill/REQUIREMENT.md +5 -1
- package/claude/skills/create-skill/SKILL.md +10 -4
- package/claude/skills/toolkit-cli/SKILL.md +0 -2
- package/docs/agents/audits.md +2 -2
- package/docs/agents/census.md +23 -0
- package/docs/agents/commands.md +2 -0
- package/docs/agents/index.md +2 -0
- package/docs/agents/restated.md +78 -0
- package/governance/rules/claude/570-skill.md +2 -0
- package/package.json +1 -1
- package/src/audits/catalog.ts +77 -0
- package/src/census/count.ts +113 -0
- package/src/cli.ts +5 -0
- package/src/commands/census.ts +105 -0
- package/src/commands/gov.ts +160 -0
- package/src/gov/restated.ts +688 -0
- package/standards/skill.md +1 -0
- package/tooling/base/manifest.toml +0 -2
- package/tooling/base/reference.md +12 -12
- package/tooling/base/seeds/.claude/context/development.md +4 -6
- package/tooling/base/configs/scripts/clean.sh +0 -45
- package/tooling/base/configs/scripts/update.sh +0 -49
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
## Overview
|
|
4
4
|
|
|
5
|
-
The base layer covers every project the toolkit scaffolds, whatever language sits on top. It ships formatting, spelling, shell linting, conventional commits, git hooks, CI, and
|
|
5
|
+
The base layer covers every project the toolkit scaffolds, whatever language sits on top. It ships formatting, spelling, shell linting, conventional commits, git hooks, CI, and one maintenance script. Every other stack extends it, so a decision made here is one every stack inherits.
|
|
6
6
|
|
|
7
7
|
A repository with several language roots layers this stack once at the root and skips it per subtree, since git honors only one `core.hooksPath` and a re-dropped husky silently breaks. `docs/target-projects.md` carries the recipe.
|
|
8
8
|
|
|
@@ -18,7 +18,7 @@ Golden config files live in `tooling/base/configs/` and are copied into the targ
|
|
|
18
18
|
- `.github/workflows/verify.yml`: runs on pull requests targeting `main` and on `workflow_dispatch`.
|
|
19
19
|
- `.github/pull_request_template.md`: `## Summary`, `## Key Changes`, `## Technical Context`, `## Testing`.
|
|
20
20
|
- `.vscode/extensions.json` and `.vscode/settings.json`: editor wiring for Prettier, cspell, shfmt, and shellcheck.
|
|
21
|
-
- `scripts/verify.sh
|
|
21
|
+
- `scripts/verify.sh`: the maintenance entry point behind `check`.
|
|
22
22
|
|
|
23
23
|
## What ships as user-owned seeds
|
|
24
24
|
|
|
@@ -86,13 +86,13 @@ Sticky negative knowledge. Do not relearn.
|
|
|
86
86
|
|
|
87
87
|
## CLI
|
|
88
88
|
|
|
89
|
-
| Script | What it does
|
|
90
|
-
| ---------------------- |
|
|
91
|
-
| `bun run check` |
|
|
92
|
-
| `bun run check:format` | Asserts prettier and shfmt formatting without writing
|
|
93
|
-
| `bun run check:spell` | Runs cspell across every file, with context on failures
|
|
94
|
-
| `bun run check:shell` | Runs shellcheck at warning severity
|
|
95
|
-
| `bun run format` | Writes prettier and shfmt formatting in place
|
|
96
|
-
| `bun run prepare` | Initializes husky hooks, run automatically on `bun install`
|
|
97
|
-
|
|
98
|
-
|
|
89
|
+
| Script | What it does |
|
|
90
|
+
| ---------------------- | ------------------------------------------------------------------------------------------------------------------------------------- |
|
|
91
|
+
| `bun run check` | Repairs a checkout via `scripts/verify.sh`. Honors `VERIFY_NESTED=true` to suppress timeline boundaries when another script calls it. |
|
|
92
|
+
| `bun run check:format` | Asserts prettier and shfmt formatting without writing |
|
|
93
|
+
| `bun run check:spell` | Runs cspell across every file, with context on failures |
|
|
94
|
+
| `bun run check:shell` | Runs shellcheck at warning severity |
|
|
95
|
+
| `bun run format` | Writes prettier and shfmt formatting in place |
|
|
96
|
+
| `bun run prepare` | Initializes husky hooks, run automatically on `bun install` |
|
|
97
|
+
|
|
98
|
+
`bun run check` repairs a checkout rather than gating one. It runs `format` first to auto-fix drifted code, then asserts only what the formatters could not fix. The pull request workflow calls `check:format`, `check:spell`, and `check:shell` directly, and those three are the gate.
|
|
@@ -21,12 +21,10 @@ Owns how the project runs on a developer machine: installing the toolchain, the
|
|
|
21
21
|
|
|
22
22
|
## Scripts
|
|
23
23
|
|
|
24
|
-
| Command | Purpose
|
|
25
|
-
| ---------------- |
|
|
26
|
-
| `bun run check` |
|
|
27
|
-
| `bun run format` | Auto-fix prettier and shfmt formatting.
|
|
28
|
-
| `bun run clean` | Wipe `node_modules/`, clear bun cache, reinstall. |
|
|
29
|
-
| `bun run update` | Interactive `bun update` followed by verification. |
|
|
24
|
+
| Command | Purpose |
|
|
25
|
+
| ---------------- | ------------------------------------------------------------------------------ |
|
|
26
|
+
| `bun run check` | Repairs locally. Auto-formats, then asserts what the formatters could not fix. |
|
|
27
|
+
| `bun run format` | Auto-fix prettier and shfmt formatting. |
|
|
30
28
|
|
|
31
29
|
## Shell scripts
|
|
32
30
|
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
#!/bin/bash
|
|
2
|
-
set -e
|
|
3
|
-
set -o pipefail
|
|
4
|
-
|
|
5
|
-
GREEN='\033[0;32m'
|
|
6
|
-
RED='\033[0;31m'
|
|
7
|
-
WHITE='\033[1;37m'
|
|
8
|
-
GREY='\033[0;90m'
|
|
9
|
-
NC='\033[0m'
|
|
10
|
-
|
|
11
|
-
log_info() { echo -e "${GREY}│${NC} ${GREEN}✓${NC} $1"; }
|
|
12
|
-
log_error() {
|
|
13
|
-
echo -e "${GREY}│${NC} ${RED}✗${NC} $1"
|
|
14
|
-
exit 1
|
|
15
|
-
}
|
|
16
|
-
log_step() { echo -e "${GREY}│${NC}\n${GREY}├${NC} ${WHITE}$1${NC}"; }
|
|
17
|
-
log_rem() { echo -e "${GREY}│${NC} ${RED}-${NC} $1"; }
|
|
18
|
-
|
|
19
|
-
check_dependencies() {
|
|
20
|
-
command -v bun >/dev/null 2>&1 || log_error "bun is not installed"
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
main() {
|
|
24
|
-
check_dependencies
|
|
25
|
-
|
|
26
|
-
echo -e "${GREY}┌${NC}"
|
|
27
|
-
|
|
28
|
-
echo -e "${GREY}├${NC} ${WHITE}Cleaning artifacts${NC}"
|
|
29
|
-
rm -rf node_modules
|
|
30
|
-
|
|
31
|
-
log_rem "node_modules/"
|
|
32
|
-
|
|
33
|
-
log_step "Cleaning cache"
|
|
34
|
-
bun pm cache rm
|
|
35
|
-
log_info "Package manager cache cleared"
|
|
36
|
-
|
|
37
|
-
log_step "Rehydrating project"
|
|
38
|
-
bun install
|
|
39
|
-
log_info "Dependencies installed"
|
|
40
|
-
|
|
41
|
-
echo -e "${GREY}└${NC}\n"
|
|
42
|
-
echo -e "${GREEN}✓ Clean complete${NC}"
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
main "$@"
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
#!/bin/bash
|
|
2
|
-
set -e
|
|
3
|
-
set -o pipefail
|
|
4
|
-
|
|
5
|
-
GREEN='\033[0;32m'
|
|
6
|
-
YELLOW='\033[0;33m'
|
|
7
|
-
RED='\033[0;31m'
|
|
8
|
-
WHITE='\033[1;37m'
|
|
9
|
-
GREY='\033[0;90m'
|
|
10
|
-
NC='\033[0m'
|
|
11
|
-
|
|
12
|
-
log_info() { echo -e "${GREY}│${NC} ${GREEN}✓${NC} $1"; }
|
|
13
|
-
log_warn() { echo -e "${GREY}│${NC} ${YELLOW}!${NC} $1"; }
|
|
14
|
-
log_error() {
|
|
15
|
-
echo -e "${GREY}│${NC} ${RED}✗${NC} $1"
|
|
16
|
-
exit 1
|
|
17
|
-
}
|
|
18
|
-
log_step() { echo -e "${GREY}│${NC}\n${GREY}├${NC} ${WHITE}$1${NC}"; }
|
|
19
|
-
|
|
20
|
-
pipe_output() { while IFS= read -r line; do echo -e "${GREY}│${NC} $line"; done; }
|
|
21
|
-
|
|
22
|
-
check_dependencies() {
|
|
23
|
-
command -v bun >/dev/null 2>&1 || log_error "bun is not installed"
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
main() {
|
|
27
|
-
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
28
|
-
|
|
29
|
-
check_dependencies
|
|
30
|
-
|
|
31
|
-
echo -e "${GREY}┌${NC}"
|
|
32
|
-
|
|
33
|
-
echo -e "${GREY}├${NC} ${WHITE}Interactive dependency update${NC}"
|
|
34
|
-
echo -e "${GREY}│${NC}"
|
|
35
|
-
bun update --interactive
|
|
36
|
-
|
|
37
|
-
log_step "Verifying project health"
|
|
38
|
-
if [ -f "$SCRIPT_DIR/verify.sh" ]; then
|
|
39
|
-
VERIFY_NESTED=true "$SCRIPT_DIR/verify.sh"
|
|
40
|
-
log_info "All checks passed"
|
|
41
|
-
else
|
|
42
|
-
log_warn "Verification script not found, skipping."
|
|
43
|
-
fi
|
|
44
|
-
|
|
45
|
-
echo -e "${GREY}└${NC}\n"
|
|
46
|
-
echo -e "${GREEN}✓ Update complete${NC}"
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
main "$@"
|