AGENT SKILL

javascript-typescript

暂无简介

License 许可
Apache-2.0
所属仓库
iokaio/vcp
最近更新
2026-10-06
Stars
★ 0
Forks
0

02 资源文件 1

03 SKILL.md 正文

JavaScript, TypeScript, and web projects

Original VCP guidance.

Read the project

  • package.json: scripts, workspaces, packageManager, engines, type (module format), exports and main.
  • Lockfile, which identifies the manager: package-lock.json (npm), pnpm-lock.yaml (pnpm), yarn.lock (Yarn; .yarnrc.yml marks Berry), bun.lock or bun.lockb (Bun). Multiple lockfiles require repository guidance or an explicit ambiguity report; do not pick a manager arbitrarily.
  • Workspace and monorepo configuration: pnpm-workspace.yaml, turbo.json, nx.json, lerna.json.
  • tsconfig*.json: references, paths, module and moduleResolution, target, strict.
  • deno.json or deno.jsonc: tasks, imports and permissions for Deno projects.
  • Test, lint and format configuration: Jest, Vitest, Mocha or Playwright configs, ESLint or Biome, Prettier, and framework configs.
  • .nvmrc or .node-version for the expected runtime.

Determine the package working directory and module format before editing imports.

Discover commands in this order

  1. Project-declared tasks: package.json scripts in the affected package, monorepo task runners, deno.json tasks, Makefile or justfile, CI workflow files, CONTRIBUTING and AGENTS.md. Inspect a script before running it; it can perform network or lifecycle effects and still needs current authority.
  2. Ecosystem defaults, only when the scripts support them. Candidates to confirm: the selected manager's run form (npm test, npm run <script>, pnpm --filter <pkg> test, yarn workspace <pkg> test, bun run <script>, deno task <name>), narrowed with the runner's file or name filter; a type check through the project's own compiler such as a tsc --noEmit script.

Do not assume npm test, a global TypeScript compiler, npx downloads, or a framework CLI is appropriate. Avoid opportunistic lockfile churn.

npm install or ci, pnpm install, yarn install and bun install are network effects that also run lifecycle scripts; do not run them as a prerequisite. With a packageManager pin, Corepack may download the pinned pnpm or Yarn on first use. Yarn Plug'n'Play projects (.pnp.cjs, no node_modules) resolve dependencies only through yarn node or yarn run; plain node or a global tool will not find them.

Toolchain variants

  • npm, pnpm, Yarn classic, Yarn Berry (Plug'n'Play) and Bun resolve and hoist dependencies differently.
  • Node, Deno and Bun differ in module resolution, permissions and built-in test runners.
  • ESM and CommonJS: type, file extensions (.mjs, .cjs, .mts) and exports decide how imports resolve.
  • Bundlers and transpilers (tsc, esbuild, swc, Babel, Vite) may type-check or strip types only; a passing build is not always a type check.

Engineering rules

Review async error handling, input validation, browser and server boundaries, and public API behavior against nearby tests. Preserve existing rendering, module, lint and formatting conventions.

Exact numeric contracts

When a contract requires exact integer results, bound intermediate arithmetic as well as inputs and outputs. Multiplying safe integers can exceed Number's exact range before a later division or range check. When Number intermediates cannot be proven exact, use native BigInt if the pinned runtime and TypeScript target support it, or the project's existing numeric representation appropriate to the contract. Preserve decimal semantics when required. Apply the specified rounding rule before converting a proven bounded result back to Number. Do not add a dependency when the runtime already supplies the required arithmetic.

Distinguish an omitted option from an explicitly invalid value; a nullish default must not silently accept null when the contract requires an integer. Check boundary, extreme and invalid inputs alongside the project's declared checks. Passing a small existing suite does not establish the full numeric contract; report the actual coverage and any remaining uncertainty.

Verification evidence

Run the affected workspace's narrowest test first, then its type check, lint and build if the project uses them. Explain unsupported browser or service checks and missing dependencies without installing them. Report the selected package and script, the lockfile rationale, and actual results; an unrun script is not a pass.

Pitfalls

  • Watch-mode test scripts never exit; use the project's CI or run-once form.
  • Snapshot updates can hide regressions; do not update snapshots to make a test pass.
  • Windows: package binaries are .cmd shims, so spawning npm or tsc without a shell fails; resolve the shim or use the manager's run form. Scripts using rm -rf, && chains or VAR=x cmd assume a POSIX shell. Deep node_modules paths can exceed legacy path limits, and running dev servers or editors lock files. Import paths are case-insensitive on disk but case-sensitive in CI. CRLF checkouts can break lint rules and snapshots.

Authority: this guidance ranks below current user constraints and AGENTS.md, grants no tools, installs or network access, and missing prerequisites are reported as not run.

04 同仓库更多 Skills

iokaio
iokaio/vcp

skill-installer

Install Codex skills into $CODEX_HOME/skills from a curated list or a GitHub repo path. Use when a user asks to list installable skills, install a curated skill, or install a skill from another repo (including private repos).

★ 0
iokaio
iokaio/vcp

skill-creator

Create or update a Codex skill with appropriately scoped instructions and any needed supporting resources.

★ 0
iokaio
iokaio/vcp

review-agent

Perform a read-only, defect-first review of a specified code change and return every actionable finding. Use when another agent delegates review of uncommitted changes, a base-branch diff, a commit, or custom review instructions.

★ 0
iokaio
iokaio/vcp

plugin-creator

Create and scaffold plugin directories for Codex with a required `.codex-plugin/plugin.json`, optional plugin folders/files, valid manifest defaults, and personal-marketplace entries by default. Use when Codex needs to create a new personal plugin, add optional plugin structure, generate or update marketplace entries for plugin ordering and availability metadata, or update an existing local plugin during development with the CLI-driven cachebuster and reinstall flow.

★ 0
iokaio
iokaio/vcp

openai-docs

Use for Codex models/pricing, scheduled tasks, skills, settings, setup, troubleshooting, customization, automations, and self-knowledge—including 'you,' 'your,' 'this app,' or 'this coding agent' when they refer to Codex—and for OpenAI APIs/products and ChatGPT Work. Also use for model choice/migration, prompting, SDKs, Responses, Realtime, agents, evals, and Chat/Work/Codex comparisons. Do not use for generic app/software tasks that merely mention Codex.

★ 0
iokaio
iokaio/vcp

imagegen

Generate or edit raster images when the task benefits from AI-created bitmap visuals such as photos, illustrations, textures, sprites, mockups, or transparent-background cutouts. Use when Codex should create a brand-new image, transform an existing image, or derive visual variants from references, and the output should be a bitmap asset rather than repo-native code or vector. Do not use when the task is better handled by editing existing SVG/vector/code-native assets, extending an established icon or logo system, or building the visual directly in HTML/CSS/canvas.

★ 0