@modeloslab/modelcode 0.1.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/README.md +73 -0
- package/SPEC.md +127 -0
- package/agents/code-reviewer.md +49 -0
- package/agents/debugger.md +25 -0
- package/agents/explore.md +22 -0
- package/agents/general-purpose.md +25 -0
- package/agents/plan.md +28 -0
- package/agents/researcher.md +26 -0
- package/agents/security-auditor.md +44 -0
- package/dist/BrowserWebSocketTransport-e6g854ra.mjs +8 -0
- package/dist/LaunchOptions-d24f2e73.mjs +8 -0
- package/dist/NodeWebSocketTransport-s3fsfh3j.mjs +9 -0
- package/dist/bidi-fwqajnyx.mjs +17261 -0
- package/dist/cli.mjs +1669 -0
- package/dist/devtools-fkz8mzpk.mjs +83 -0
- package/dist/fileFromPath-s8scncrt.mjs +128 -0
- package/dist/helpers-667kxskd.mjs +17 -0
- package/dist/index-4706p1xh.mjs +3238 -0
- package/dist/index-gp8nzd9n.mjs +1561 -0
- package/dist/main-0r35eyef.mjs +16229 -0
- package/dist/main-2aqyq9g6.mjs +24239 -0
- package/dist/main-5vqwebnv.mjs +54 -0
- package/dist/main-7f2pnmhh.mjs +2901 -0
- package/dist/main-7jta7ark.mjs +57 -0
- package/dist/main-8y3fe7c3.mjs +48 -0
- package/dist/main-9w13grbs.mjs +41 -0
- package/dist/main-d71btkt1.mjs +2478 -0
- package/dist/main-h8e68gyt.mjs +2819 -0
- package/dist/main-p2xnn95s.mjs +2240 -0
- package/dist/main-qfprs50h.mjs +1629 -0
- package/dist/main-tqg5vhra.mjs +19 -0
- package/dist/puppeteer-core-qdv3v3fq.mjs +1486 -0
- package/dist/tui-0r2q70wm.mjs +23768 -0
- package/package.json +66 -0
- package/skills/commit/SKILL.md +34 -0
- package/skills/debug/SKILL.md +44 -0
- package/skills/docker/SKILL.md +18 -0
- package/skills/init/SKILL.md +36 -0
- package/skills/nextjs-app-router/SKILL.md +16 -0
- package/skills/nextjs-data-fetching/SKILL.md +16 -0
- package/skills/nextjs-env-config/SKILL.md +18 -0
- package/skills/nextjs-metadata-seo/SKILL.md +17 -0
- package/skills/nextjs-middleware/SKILL.md +18 -0
- package/skills/nextjs-performance/SKILL.md +17 -0
- package/skills/nextjs-route-handler/SKILL.md +18 -0
- package/skills/nextjs-server-actions/SKILL.md +17 -0
- package/skills/nextjs-server-components/SKILL.md +18 -0
- package/skills/power-ui/SKILL.md +40 -0
- package/skills/pr/SKILL.md +38 -0
- package/skills/refactor/SKILL.md +40 -0
- package/skills/remember/SKILL.md +39 -0
- package/skills/review/SKILL.md +22 -0
- package/skills/security-review/SKILL.md +21 -0
- package/skills/simplify/SKILL.md +47 -0
- package/skills/skill-create/SKILL.md +37 -0
- package/skills/test/SKILL.md +34 -0
- package/skills/vercel-deploy/SKILL.md +16 -0
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: skill-create
|
|
3
|
+
description: Distill a reusable skill from what was just done — turn a successful multi-step task into a repeatable, parameterized SKILL.md.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Skill Create: Capture a Reusable Workflow
|
|
7
|
+
|
|
8
|
+
## Goal
|
|
9
|
+
Turn a successful task (or the user's spec) into a tight, parameterized SKILL.md that works for the
|
|
10
|
+
GENERAL case, not the one instance that prompted it.
|
|
11
|
+
|
|
12
|
+
## Steps
|
|
13
|
+
|
|
14
|
+
### 1. Decide the skill
|
|
15
|
+
Follow the user's direction for the name, purpose, and any specifics (in "User input"). If unspecified,
|
|
16
|
+
generalize from the steps that just solved the task — what was the repeatable procedure?
|
|
17
|
+
**Success criteria**: a one-line statement of what the skill does and when to use it.
|
|
18
|
+
|
|
19
|
+
### 2. Name + scope
|
|
20
|
+
`name`: lowercase, hyphen-separated, matching the directory. Write to `.modelcode/skills/<name>/SKILL.md`
|
|
21
|
+
(project) or `~/.modelcode/skills/<name>/SKILL.md` (global, if the user says "global").
|
|
22
|
+
|
|
23
|
+
### 3. Write it (match this repo's skill style)
|
|
24
|
+
- **Frontmatter**: `name` + a `description` precise enough that the agent knows WHEN to invoke it
|
|
25
|
+
(include trigger phrases).
|
|
26
|
+
- **Body**: `# Title` → `## Goal` → `## Steps` (numbered, each with a **Success criteria** where useful).
|
|
27
|
+
Make steps PARAMETERIZED — refer to "the target file / the user's input", never hard-code the specific
|
|
28
|
+
values from the example task. Add a short discipline/"don't" note where it prevents misuse.
|
|
29
|
+
- Keep it tight and high-signal; delegate to subagents for review-type work where it fits.
|
|
30
|
+
**Success criteria**: someone could run this skill on a different input and it still applies.
|
|
31
|
+
|
|
32
|
+
### 4. Confirm
|
|
33
|
+
State the new skill name so it's available as `/<name>` next session.
|
|
34
|
+
|
|
35
|
+
## Don't
|
|
36
|
+
Don't bake in one-off paths/values, don't pad with obvious filler, don't duplicate an existing skill —
|
|
37
|
+
extend that one instead.
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: test
|
|
3
|
+
description: Detect the project's test runner, run the suite (or a named subset), summarize failures, and offer to fix them.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Test: Run and Triage
|
|
7
|
+
|
|
8
|
+
## Goal
|
|
9
|
+
Run the right tests for this project and give a clear, actionable failure summary.
|
|
10
|
+
|
|
11
|
+
## Steps
|
|
12
|
+
|
|
13
|
+
### 1. Detect the runner
|
|
14
|
+
Infer from the project, in priority order: `package.json` scripts (`test`/`test:unit`…), then framework
|
|
15
|
+
markers — `bun test`, `vitest`/`jest` config, `pytest`/`pyproject.toml`/`tox.ini`, `go test ./...`,
|
|
16
|
+
`cargo test`, `rspec`, `mvn/gradle test`. Prefer the project's own script if one exists.
|
|
17
|
+
**Success criteria**: you know the exact command this repo uses.
|
|
18
|
+
|
|
19
|
+
### 2. Run
|
|
20
|
+
Run the full suite via `bash`, or a focused subset if the user named a file/pattern (use the runner's
|
|
21
|
+
filter flag, e.g. `-k`, `-t`, `--test-name-pattern`, a path). Don't swallow output.
|
|
22
|
+
|
|
23
|
+
### 3. Summarize
|
|
24
|
+
Report pass/fail/skip counts. For each failure: the test name + the single key line of the error/assert
|
|
25
|
+
(not the whole dump). Group related failures (often one root cause).
|
|
26
|
+
**Success criteria**: the user can see what broke and where without re-running.
|
|
27
|
+
|
|
28
|
+
### 4. Offer to fix
|
|
29
|
+
If there are failures, offer to delegate root-causing to the **debugger** subagent (one per distinct
|
|
30
|
+
root cause). Don't auto-fix unless asked.
|
|
31
|
+
|
|
32
|
+
## Notes
|
|
33
|
+
If there's no test setup at all, say so and offer to scaffold one matching the stack rather than
|
|
34
|
+
inventing a runner. Flaky/order-dependent failures: re-run the failing test in isolation to confirm.
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: vercel-deploy
|
|
3
|
+
description: Deploy a Next.js (or any) app to Vercel — vercel CLI, preview vs production, env vars, build settings, domains, and common deploy failures. Use to ship, set up CI previews, or fix a broken deploy.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
Deploy with the **Vercel CLI** (or Git integration for auto previews on every push):
|
|
7
|
+
- `vercel` → preview deploy; `vercel --prod` → production. `vercel link` to connect the project.
|
|
8
|
+
- **Env vars**: `vercel env add <NAME> <production|preview|development>`; pull locally with
|
|
9
|
+
`vercel env pull .env.local`. Remember `NEXT_PUBLIC_` vars are build-time — redeploy after changes.
|
|
10
|
+
- Next.js needs no special config (zero-config). Override build/output only if non-standard.
|
|
11
|
+
- Git integration: each PR gets a unique **preview URL**; merging to the production branch deploys prod.
|
|
12
|
+
- `vercel.json` for rewrites/redirects/headers/cron functions when needed.
|
|
13
|
+
|
|
14
|
+
Debug failed deploys: read the build log (the error is almost always a failing `next build` — missing
|
|
15
|
+
env var, type error, or a server-only import in client code). Reproduce locally with `next build` first,
|
|
16
|
+
fix, then redeploy. Verify the live URL + that env-dependent features work in production.
|