@iceinvein/agent-skills 0.1.23 → 0.1.25

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 (64) hide show
  1. package/package.json +1 -1
  2. package/skills/magpie/LICENSE +21 -0
  3. package/skills/magpie/README.md +72 -0
  4. package/skills/magpie/SKILL.md +649 -0
  5. package/skills/magpie/bin/magpie +15 -0
  6. package/skills/magpie/bin/magpie.ts +283 -0
  7. package/skills/magpie/biome.json +35 -0
  8. package/skills/magpie/bun.lock +21 -0
  9. package/skills/magpie/fixtures/example-pr/findings.final.json +137 -0
  10. package/skills/magpie/fixtures/example-pr/post-status.json +5 -0
  11. package/skills/magpie/fixtures/example-pr/pr.json +9 -0
  12. package/skills/magpie/fixtures/fake-gh.sh +33 -0
  13. package/skills/magpie/install.sh +77 -0
  14. package/skills/magpie/package.json +15 -0
  15. package/skills/magpie/scripts/__tests__/cleanup-cmd.test.ts +121 -0
  16. package/skills/magpie/scripts/__tests__/cli.test.ts +276 -0
  17. package/skills/magpie/scripts/__tests__/dedupe-cmd.test.ts +79 -0
  18. package/skills/magpie/scripts/__tests__/dedupe.test.ts +111 -0
  19. package/skills/magpie/scripts/__tests__/finding-description.test.ts +90 -0
  20. package/skills/magpie/scripts/__tests__/gh.test.ts +39 -0
  21. package/skills/magpie/scripts/__tests__/helper.test.ts +59 -0
  22. package/skills/magpie/scripts/__tests__/housekeeping-cmd.test.ts +37 -0
  23. package/skills/magpie/scripts/__tests__/open-cmd.test.ts +150 -0
  24. package/skills/magpie/scripts/__tests__/pipeline-e2e.test.ts +84 -0
  25. package/skills/magpie/scripts/__tests__/post-cmd.test.ts +333 -0
  26. package/skills/magpie/scripts/__tests__/preflight.test.ts +33 -0
  27. package/skills/magpie/scripts/__tests__/preview-cmd.test.ts +210 -0
  28. package/skills/magpie/scripts/__tests__/refresh.test.ts +86 -0
  29. package/skills/magpie/scripts/__tests__/render-cmd.test.ts +71 -0
  30. package/skills/magpie/scripts/__tests__/render-findings.test.ts +311 -0
  31. package/skills/magpie/scripts/__tests__/render-progress.test.ts +116 -0
  32. package/skills/magpie/scripts/__tests__/resolve-run.test.ts +66 -0
  33. package/skills/magpie/scripts/__tests__/serve-cmd.test.ts +44 -0
  34. package/skills/magpie/scripts/__tests__/server.test.ts +139 -0
  35. package/skills/magpie/scripts/__tests__/setup-cmd.test.ts +78 -0
  36. package/skills/magpie/scripts/__tests__/skill-lint.test.ts +134 -0
  37. package/skills/magpie/scripts/__tests__/status-cmd.test.ts +42 -0
  38. package/skills/magpie/scripts/__tests__/types.test.ts +53 -0
  39. package/skills/magpie/scripts/__tests__/worktree.test.ts +79 -0
  40. package/skills/magpie/scripts/cleanup-cmd.ts +101 -0
  41. package/skills/magpie/scripts/dedupe-cmd.ts +78 -0
  42. package/skills/magpie/scripts/dedupe.ts +266 -0
  43. package/skills/magpie/scripts/finding-description.ts +145 -0
  44. package/skills/magpie/scripts/gh.ts +63 -0
  45. package/skills/magpie/scripts/helper.js +527 -0
  46. package/skills/magpie/scripts/housekeeping-cmd.ts +48 -0
  47. package/skills/magpie/scripts/open-cmd.ts +68 -0
  48. package/skills/magpie/scripts/post-cmd.ts +527 -0
  49. package/skills/magpie/scripts/preflight.ts +43 -0
  50. package/skills/magpie/scripts/preview-cmd.ts +277 -0
  51. package/skills/magpie/scripts/refresh.ts +83 -0
  52. package/skills/magpie/scripts/render-cmd.ts +115 -0
  53. package/skills/magpie/scripts/render-findings.ts +437 -0
  54. package/skills/magpie/scripts/render-progress.ts +215 -0
  55. package/skills/magpie/scripts/resolve-run.ts +75 -0
  56. package/skills/magpie/scripts/serve-cmd.ts +40 -0
  57. package/skills/magpie/scripts/server.ts +166 -0
  58. package/skills/magpie/scripts/setup-cmd.ts +71 -0
  59. package/skills/magpie/scripts/status-cmd.ts +46 -0
  60. package/skills/magpie/scripts/types.ts +106 -0
  61. package/skills/magpie/scripts/worktree.ts +58 -0
  62. package/skills/magpie/skill.json +18 -0
  63. package/skills/magpie/templates/styles.css +1482 -0
  64. package/skills/magpie/tsconfig.json +18 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@iceinvein/agent-skills",
3
- "version": "0.1.23",
3
+ "version": "0.1.25",
4
4
  "description": "Install agent skills into AI coding tools",
5
5
  "author": "iceinvein",
6
6
  "license": "MIT",
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Dik Rana
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,72 @@
1
+ # magpie
2
+
3
+ Interactive Claude Code skill that runs a multi-stage PR review pipeline inside the user's Claude Code conversation.
4
+
5
+ ## What it does
6
+
7
+ Given a GitHub PR number, dispatches five specialist subagents in parallel (security, bugs, performance, code-smells, architecture), dedupes their findings, applies a critic rubric, peer-reviews via `codex exec`, serves an interactive HTML report, and posts the findings the user selects via `gh`.
8
+
9
+ ## Requirements
10
+
11
+ - `bun` on PATH (https://bun.sh)
12
+ - `gh` on PATH, authenticated (`gh auth status`)
13
+ - `codex` on PATH, authenticated
14
+ - `git` on PATH
15
+
16
+ ## Install
17
+
18
+ This skill ships in two parts: the prompt (SKILL.md) and a companion Bun CLI (bin + scripts). Both are needed, and `install.sh` handles both in one step.
19
+
20
+ ```
21
+ ./install.sh
22
+ ```
23
+
24
+ That symlinks the full skill source tree (bin/, scripts/, templates/, fixtures/, SKILL.md, skill.json) into `~/.claude/skills/magpie/`, then symlinks `bin/magpie` onto your PATH (preferring `/usr/local/bin`, falling back to `~/.local/bin`). Re-run any time to refresh the links.
25
+
26
+ Once an agent-skills registry entry exists for `magpie`, the prompt half can also be installed via `bunx @iceinvein/agent-skills install magpie`, but the CLI still requires `./install.sh` (or an equivalent manual symlink) because the registry only ships SKILL.md.
27
+
28
+ ## Use
29
+
30
+ Inside Claude Code, ask: "Review PR 1234" (or paste a PR URL). The agent reads SKILL.md and walks the pipeline; the CLI runs as `magpie setup`, `magpie serve`, etc.
31
+
32
+ ## Development
33
+
34
+ ```
35
+ bun install # Installs @types/bun
36
+ bun test # Run all tests
37
+ bun run lint # Biome check
38
+ bun run typecheck # tsc --noEmit
39
+ ```
40
+
41
+ ### Previewing the UI
42
+
43
+ Use the bundled example PR fixture to render either page without a real review. Useful for design iteration.
44
+
45
+ ```
46
+ magpie preview # render both pages, open findings.html
47
+ magpie preview --page progress --stage fresh # progress page at "everything pending"
48
+ magpie preview --page progress --stage specialists-running
49
+ magpie preview --page progress --stage peer-review-error
50
+ magpie preview --no-open --out /tmp/magpie-ui # write files only
51
+ magpie preview --list-stages # see all stage presets
52
+ ```
53
+
54
+ The fixture lives at `fixtures/example-pr/` (pr.json + findings.final.json + post-status.json) and covers all four severities, all five focus domains, every section combination (with/without suggestion code block, with/without verification, raw-prose fallback), and a mix of posted / failed / fresh badges.
55
+
56
+ ## Layout
57
+
58
+ - `SKILL.md` is the agent-facing prompt; installed by the agent-skills CLI.
59
+ - `skill.json` is the agent-skills manifest.
60
+ - `bin/magpie` is the CLI invoked by the agent during stages; installed by `install.sh`.
61
+ - `scripts/` holds the implementation (server, dedupe, render, setup, cleanup, etc.).
62
+ - `templates/styles.css` is the HTML report stylesheet.
63
+ - `fixtures/` holds canned PR data for tests.
64
+ - `install.sh` symlinks the skill directory into `~/.claude/skills/`.
65
+
66
+ ## Design docs
67
+
68
+ The original design and implementation plan live at `docs/magpie/design.md` and `docs/magpie/plan.md` at the repo root.
69
+
70
+ ## Run directory layout
71
+
72
+ Each invocation creates `~/.magpie/pr-<n>-<ts>/` with `pr.json`, `diff.patch`, `findings/`, `findings.deduped.json`, `findings.kept.json`, `findings.final.json`, `screen/`, `state/`, `log.jsonl`. On completion the directory is renamed to `<run-dir>.archived-<timestamp>` rather than deleted, so logs survive for postmortem.