prefer-local-kody-execute
Prefer @kodycodes/cli execute --local over hosted MCP execute for one-off modules and smoke tests when Node ≥22 and the CLI are available.
Skill by kentcdodds
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/kentcdodds-prefer-local-kody-execute
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: backend, devops, security, agent-building
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md and code. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/prefer-local-kody-execute
What's inside
- Skill name
prefer-local-kody-execute- Description
- Prefer @kodycodes/cli execute --local over hosted MCP execute for one-off modules and smoke tests when Node ≥22 and the CLI are available. Agents already on Kody MCP: cliCredentialBootstrap then CLI auth bootstrap (no second OAuth, no tokenCreate). Interactive humans: kody login. Scoped KODY_API_TOKEN remains for CI/headless. Use when running Kody execute from Cursor (including Cloud Agents), bootstrapping CLI credentials, or choosing local CLI vs Open API / MCP `api`.
- License
- MIT
- Instructions
- 57 lines in SKILL.md · view on GitHub
Files (1)
- SKILL.md
SKILL.md (first lines)
# Prefer local CLI execute
When Node is 22 or newer and `@kodycodes/cli` is available, run one-off modules
with local execute. Do not use hosted MCP `execute`. This skill and
[Local CLI execute](https://kody.codes/docs/local-execute)
(`guide:local_execute`) are the source of truth. Open API fallback:
[Open API](https://kody.codes/docs/open-api) (`guide:open_api`).
Local CPU is not counted as `execute` or `dynamic_worker_day`. Capabilities
called through the proxy still meter normally. Prefer `KODY_API_TOKEN` in the
environment over `--token` so the secret is not visible in process arguments.
## Command
Agents already on MCP: call `cliCredentialBootstrap` with a required lifetime
(single-task agents use `short`), then run the returned `cli_command` (it
already includes lifetime flags). Humans who can finish browser OAuth:
`npx @kodycodes/cli login` once. CI with no MCP session and no interactive
login: set `KODY_API_TOKEN` in the environment. Never paste a `kody_at_…` into
chat.
```json
{
"operationId": "cliCredentialBootstrap",
"params": { "lifetime": "short" }
}
```
```bash
npx @kodycodes/cli auth bootstrap --code 'kody_bc_…' --lifetime short
npx @kodycodes/cli execute --local --code 'import { kody } from "kody:runtime"; export default async function main() { return await kody.metaGetCurrentUser({}) }'
```
Saved packages keep `--local` and a static `kody:@…` import.
## Failure
- Node is below 22, the CLI is missing, or the host cannot run workerd. Use Open
API / MCP `api`, or fix the environment. Hosted MCP `execute` stays banned.
- Lifetime is missing. Pass `lifetime: "short"|"long"` (or both idle/max
seconds) to `cliCredentialBootstrap`, and `--lifetime short|long` (or both
`--idle-ttl-seconds` / `--max-lifetime-seconds`) to `auth bootstrap`.
- The bootstrap code is rejected. Call `cliCredentialBootstrap` again with
`lifetime: "short"`. Do not switch to `kody login` or `tokenCreate` while an
MCP session exists.
- `search` is forbidden. Default bootstrap scopes are local-execute use scopes
(`org:execute`, `org:read`, package/integration/secret/email/job/app/memory
use scopes), plus `package:write` and `token:delete` — not `search:read`
([ADR 0056](https://github.com/kody-hq/kody/blob/main/docs/contributing/decisions/0056-cli-credential-bootstrap.md)).
`whoami` works. Use MCP `search`, or a token with `search:read`.
- The module imports `kody:@…`. Keep `--local`. Default bootstrap includes
`package:execute` and `integration:read` so package-graph and
`createAuthenticatedFetch` work for saved packages.
- The CLI asks for a login, a bootstrap, or a token. Priority is `--token` /
`KODY_API_TOKEN`, then the stored bootstrap token, then `kody login`.From kentcdodds/kcd-skills, MIT.
More from kentcdodds/kcd-skills
- 0.664score
autopilot
kentcdodds
Audit any repository and set it up so coding agents ship changes safely with little human review.
SkillAFreshness: A★ 49Claude Code +9 - 0.664score
visual-recap
kentcdodds
Generate and maintain the system recap block in a PR description - a GitHub-rendered visual summary of which system primitives a change touches, how risky it…
SkillAFreshness: A★ 49Claude Code +9 - 0.659score
friction-log
kentcdodds
File durable repo or package papercuts as friction issues.
SkillAFreshness: A★ 49Claude Code +9 - 0.659score
ship-pr
kentcdodds
Babysit a PR to done with the @kentcdodds/ship-pr Kody package: tick the PR, read the focused step, fix / reply / decide, and tick again until done (merge or…
SkillAFreshness: A★ 49Claude Code +9 - 0.651score
review-and-recommend
kentcdodds
Review data, issues, code, and git history; present options with effort and one-way/two-way door labels; recommend one path and name the right fix (explain if…
SkillAFreshness: A★ 49Claude Code +9
Signals
- Stars
- 49
- Forks
- 0
- Open issues
- 1
- Last commit (this folder)
- Oct 19, 2026 (11 days ago)
- Last release
- Oct 23, 2026 (6 days ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/kentcdodds/kcd-skills
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from kentcdodds
- 0.664score
autopilot
kentcdodds
Audit any repository and set it up so coding agents ship changes safely with little human review.
SkillAFreshness: A★ 49Claude Code +9 - 0.664score
visual-recap
kentcdodds
Generate and maintain the system recap block in a PR description - a GitHub-rendered visual summary of which system primitives a change touches, how risky it…
SkillAFreshness: A★ 49Claude Code +9 - 0.659score
friction-log
kentcdodds
File durable repo or package papercuts as friction issues.
SkillAFreshness: A★ 49Claude Code +9 - 0.659score
ship-pr
kentcdodds
Babysit a PR to done with the @kentcdodds/ship-pr Kody package: tick the PR, read the focused step, fix / reply / decide, and tick again until done (merge or…
SkillAFreshness: A★ 49Claude Code +9 - 0.651score
review-and-recommend
kentcdodds
Review data, issues, code, and git history; present options with effort and one-way/two-way door labels; recommend one path and name the right fix (explain if…
SkillAFreshness: A★ 49Claude Code +9
Cite this page
prefer-local-kody-execute skill. Agent Mart. https://agentmart.dev/skills/kentcdodds-prefer-local-kody-execute (last updated 2026-10-24)