Skip to content

Commit b1d9f56

Browse files
kt3kclaude
andcommitted
chore: format pre-existing files with deno fmt
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 5b8e51a commit b1d9f56

2 files changed

Lines changed: 27 additions & 23 deletions

File tree

.claude/skills/simplify/SKILL.md

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
---
22
description: |-
3-
Read source code and find opportunities to simplify, deduplicate, and consolidate.
4-
Apply changes after user approval.
3+
Read source code and find opportunities to simplify, deduplicate, and consolidate.
4+
Apply changes after user approval.
55
metadata:
6-
github-path: skills/simplify
7-
github-ref: refs/heads/main
8-
github-repo: https://github.com/kt3k/skills
9-
github-tree-sha: 5a4452bdfca863fe9737a4fc34d2d6cece95e47c
6+
github-path: skills/simplify
7+
github-ref: refs/heads/main
8+
github-repo: https://github.com/kt3k/skills
9+
github-tree-sha: 5a4452bdfca863fe9737a4fc34d2d6cece95e47c
1010
name: simplify
1111
---
12+
1213
### Arguments (optional)
1314

1415
- `<scope>`: A file path, directory, or free-form description of the range to
@@ -20,12 +21,15 @@ name: simplify
2021
- If an argument is provided, use it as the review scope.
2122
- If no argument is provided:
2223
- Check the current git branch (`git rev-parse --abbrev-ref HEAD`).
23-
- If the current branch is not main (e.g. main, master), use **Current branch diff** as the review scope.
24-
- Otherwise, ask the user explicitly which scope to use,
25-
using `AskUserQuestion` with these options:
24+
- If the current branch is not main (e.g. main, master), use **Current
25+
branch diff** as the review scope.
26+
- Otherwise, ask the user explicitly which scope to use, using
27+
`AskUserQuestion` with these options:
2628
- **Whole codebase** — review all source code in the repository
27-
- **Current branch diff** — review changes in the current branch vs the main branch
28-
- **Last commit** — review changes in the most recent commit (`git show HEAD`)
29+
- **Current branch diff** — review changes in the current branch vs the
30+
main branch
31+
- **Last commit** — review changes in the most recent commit
32+
(`git show HEAD`)
2933
- **Other** — let the user specify a custom scope (free-form input)
3034
- Do NOT proceed until the scope is determined.
3135

digest/SPEC.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -101,9 +101,9 @@ pinned).
101101
- filtered to drop noisy files — lockfiles, `*.min.js`/`*.min.css`, `*.map`,
102102
`vendor/`, `third_party/`, `node_modules/`, `__snapshots__/`;
103103
- truncated to `MAX_DIFF_LINES` (120) lines with a truncation marker, and any
104-
single line longer than `MAX_DIFF_LINE_CHARS` (500) is clamped (so a bundled
105-
or minified dist line can't blow the token budget). Commits whose diff is
106-
empty after filtering are omitted.
104+
single line longer than `MAX_DIFF_LINE_CHARS` (500) is clamped (so a
105+
bundled or minified dist line can't blow the token budget). Commits whose
106+
diff is empty after filtering are omitted.
107107

108108
4. **Pass 2 — write** (`callLLM`): send the full commit list plus the attached
109109
diffs to the write model, which returns the article `Summary`. The system
@@ -159,15 +159,15 @@ are quoted and `"`-escaped.
159159

160160
## Tuning constants (`digest/main.ts`)
161161

162-
| Constant | Value | Effect |
163-
| ------------------------- | ----- | ------------------------------------------------- |
164-
| `MAX_COMMITS` | 300 | Max commits read per repo/day. |
165-
| `MAX_FILES_PER_COMMIT` | 25 | Max file stats captured per commit. |
166-
| `TRIAGE_BYPASS_THRESHOLD` | 10 | At/below this commit count, skip the triage call. |
167-
| `MAX_DIFF_COMMITS` | 8 | Max commits that get a diff attached per day. |
168-
| `MAX_DIFF_LINES` | 120 | Per-commit diff line cap. |
169-
| `MAX_DIFF_LINE_CHARS` | 500 | Per-line char cap (clamps bundled/minified lines).|
170-
| `DIFF_EXCLUDE` | — | Path patterns whose diffs are dropped. |
162+
| Constant | Value | Effect |
163+
| ------------------------- | ----- | -------------------------------------------------- |
164+
| `MAX_COMMITS` | 300 | Max commits read per repo/day. |
165+
| `MAX_FILES_PER_COMMIT` | 25 | Max file stats captured per commit. |
166+
| `TRIAGE_BYPASS_THRESHOLD` | 10 | At/below this commit count, skip the triage call. |
167+
| `MAX_DIFF_COMMITS` | 8 | Max commits that get a diff attached per day. |
168+
| `MAX_DIFF_LINES` | 120 | Per-commit diff line cap. |
169+
| `MAX_DIFF_LINE_CHARS` | 500 | Per-line char cap (clamps bundled/minified lines). |
170+
| `DIFF_EXCLUDE` | — | Path patterns whose diffs are dropped. |
171171

172172
Diffs dominate token cost, so they are bounded by both count and per-commit
173173
size; the triage call itself is comparatively cheap.

0 commit comments

Comments
 (0)