plugins/hypercore/skills/claude-code/SKILL.md
[Hyper] Use when the user explicitly wants Anthropic Claude Code CLI (`claude`) for an isolated session, non-interactive (`-p`) run, session resume by ID or name, or a CI-friendly `--bare` invocation. Trigger phrases: "use claude code", "ask claude", "run claude", "continue the last claude session", "resume the auth-refactor claude session", or "use Anthropic's CLI to inspect or fix this repo".
npx skillsauth add alpoxdev/hypercore claude-codeInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
@rules/routing.md
<output_language>
Default all user-facing deliverables, saved artifacts, reports, plans, generated docs, summaries, handoff notes, commit/message drafts, and validation notes to Korean, even when this canonical skill file is written in English.
Preserve source code identifiers, CLI commands, file paths, schema keys, JSON/YAML field names, API names, package names, proper nouns, and quoted source excerpts in their required or original language.
Use a different language only when the user explicitly requests it, an existing target artifact must stay in another language for consistency, or a machine-readable contract requires exact English tokens. If a localized template or reference exists (for example *.ko.md or *.ko.json), prefer it for user-facing artifacts.
</output_language>
Source of truth: https://code.claude.com/docs/en/cli-reference.
| Parameter | Default |
|-----------|---------|
| Model selection | Use Claude Code CLI default unless the user explicitly asks for --model |
| Effort | Use CLI default unless the user explicitly asks for --effort |
| Permission mode | --permission-mode default |
| Headless mode | -p / --print |
| CI / scripted run | Add --bare so the call ignores local hooks, plugins, MCP, and CLAUDE.md |
| Resume target | claude --continue (-c) for the latest session in the current directory; claude --resume (-r) for a session by ID or display name |
Do NOT ask the user for model or effort unless explicitly requested.
Use this skill when the request actually needs the claude CLI or a separate Claude Code session.
claude CLI itself.Positive triggers:
claude in print mode and analyze this architecture."auth-refactor claude session and apply the next fix."claude --bare -p so this CI step does not pick up local hooks."Negative triggers:
Boundary trigger:
claude CLI involved; otherwise route to research or direct documentation work.Always use -p / --print for non-interactive Claude Code runs. Positional prompts without -p start the interactive REPL instead, so a script that omits -p will hang waiting for a TTY.
# Non-interactive (headless / SDK)
claude --permission-mode default -p "your prompt here"
# Interactive REPL (initial prompt only — does NOT exit)
claude "your prompt here"
-p is the canonical SDK/CI entrypoint. The CLI was previously called "headless mode"; the -p flag is unchanged.
Add --bare for any scripted or CI invocation. It skips auto-discovery of hooks, skills, plugins, MCP servers, auto memory, and CLAUDE.md so the call returns the same result on every machine. Bare mode also skips the OAuth keychain, so it requires ANTHROPIC_API_KEY, ANTHROPIC_AUTH_TOKEN, or an apiKeyHelper passed through --settings.
ANTHROPIC_API_KEY=$KEY claude --bare -p "Summarize the diff" --allowedTools "Read"
For pipelines that need a long-lived OAuth token instead of an API key, generate one with claude setup-token and export it as CLAUDE_CODE_OAUTH_TOKEN (note: bare mode does NOT read CLAUDE_CODE_OAUTH_TOKEN — use ANTHROPIC_API_KEY or apiKeyHelper when --bare is set).
Read references/recipes.md for concrete command recipes before changing permission modes, resuming a session, restricting tools, or adding extra directories.
Six modes are supported. Pick the loosest mode the task safely allows.
| Flag | When to use |
|------|-------------|
| --permission-mode default | General Claude Code usage with normal approval prompts |
| --permission-mode plan | Read-only analysis or planning with no file changes or shell execution |
| --permission-mode acceptEdits | The user explicitly wants Claude Code to write files (also auto-approves common filesystem commands like mkdir, mv, cp) |
| --permission-mode auto | Long autonomous tasks where prompt fatigue matters; a server-side classifier blocks risky actions but does not replace review |
| --permission-mode dontAsk | Locked-down CI: only permissions.allow rules and the read-only command set may run; everything else is auto-denied |
| --permission-mode bypassPermissions | Containers / VMs only — equivalent to --dangerously-skip-permissions, requires explicit user approval, and offers no protection against prompt injection |
Auto mode requires Claude Code v2.1.83+ and is gated by plan, admin policy, model, and provider; if the CLI reports it as unavailable, do not retry.
claude --permission-mode default -p "your prompt here".--model <model> or --effort <level> only when the user explicitly asks.--output-format only when the user wants something other than text. Supported values: text (default), json, stream-json.--output-format json with --json-schema '<JSON Schema>'.--max-turns <N> and/or --max-budget-usd <dollars> for autonomous print-mode runs that must not loop forever.--fallback-model <name> in print mode when a graceful degrade beats a hard failure on overload.--add-dir <path> when the task needs files outside the launch directory. (--add-dir grants file access; it does NOT load .claude/ configuration from the added directory, except for .claude/skills/.)--allowedTools, --disallowedTools, or --tools (use --tools "" to disable all built-ins, --tools "default" for all, or a comma list like "Bash,Edit,Read").--append-system-prompt, --append-system-prompt-file, --system-prompt, or --system-prompt-file.--mcp-config <file-or-json>; add --strict-mcp-config to ignore every other MCP source.--dangerously-skip-permissions. Prefer --permission-mode acceptEdits for normal file edits.# Latest session in the current directory
claude --continue -p "continue the previous task" # short: claude -c -p "..."
# Specific session by ID or by display name
claude --resume "auth-refactor" -p "continue with this follow-up" # short: -r
claude --resume <session-id> -p "continue with this follow-up"
# Pin a UUID so a script always reuses the same session
claude --session-id 550e8400-e29b-41d4-a716-446655440000 -p "..." # must be a valid UUID
# Resume sessions linked to a pull request
claude --from-pr 123 -p "address review comments"
Use --continue for the latest conversation in the current directory.
Use --resume for a specific session by ID or by display name (set with --name / -n, or by /rename mid-session).
Use --session-id only with a real UUID — the CLI rejects other strings.
When resuming, keep the existing session's behavior unless the user explicitly asks to change the model, effort, or permission mode.
Add --fork-session only when the user wants to branch from the existing session instead of reusing it.
claude --continue (-c), claude --resume <id-or-name> (-r), or claude --from-pr <pr>.Treat Claude Code as a colleague, not an authority.
The CLI reads credentials in this precedence order: cloud provider env vars (CLAUDE_CODE_USE_BEDROCK / _VERTEX / _FOUNDRY) → ANTHROPIC_AUTH_TOKEN → ANTHROPIC_API_KEY → apiKeyHelper → CLAUDE_CODE_OAUTH_TOKEN → subscription OAuth from /login.
claude once and follow the prompt, or claude auth login (use --console for Console billing, --sso to force SSO).claude auth status or /status from inside a session; claude auth logout or /logout to clear credentials.claude setup-token prints a token; export it as CLAUDE_CODE_OAUTH_TOKEN (not read by --bare).ANTHROPIC_API_KEY for X-Api-Key, ANTHROPIC_AUTH_TOKEN for Authorization: Bearer through a gateway.command not found: claude: tell the user Claude Code CLI is not installed; they can run claude install stable after setup.unset ANTHROPIC_API_KEY may be needed when a subscription is active), then re-run claude auth login or claude auth status to confirm.--permission-mode (plan for read-only, acceptEdits for file edits) or adjust --allowedTools / --disallowedTools. Do not escalate to --dangerously-skip-permissions without explicit user approval.claude --resume without an argument to pick from a list, or switch to claude --continue for the current directory; --session-id requires a UUID.default or acceptEdits.claude --help, then re-run with supported options. claude --help does not list every flag — consult the CLI reference for the full list.development
[Hyper] Use when working on Vite + TanStack Router projects - enforces architecture rules (layers, routes, hooks, services, conventions) with mandatory validation before any code change. Triggers on file creation, route work, hook patterns, or any structural change in a Vite + TanStack Router codebase.
development
[Hyper] Update semantic versions across node/rust/python projects, keep discovered version files synchronized, and prefer the installed `git-commit` skill for the final git step with a direct fallback when it is unavailable.
development
[Hyper] Use when working on TanStack Start projects and the task involves auth, sessions, cookies, CSRF, secrets, env exposure, server functions/routes, headers/CSP, webhooks, or security review/fixes. Triggers on protecting routes, hardening auth flows, preventing secret leaks, securing server boundaries, or reviewing HTTP/security behavior in a TanStack Start app.
tools
[Hyper] Enforce TanStack Start architecture in existing Start projects, especially project/folder structure, route structure, nested shared folder organization, server functions, loader/client-server boundaries, importProtection, hooks, SSR/hydration, and hypercore conventions. Use before structural code changes, folder-structure reviews, route work, server function work, or architecture audits in TanStack Start codebases.