project-setup
Bootstrap and scaffold new projects and their tooling: create a Bun-centric TypeScript project or set up dprint formatting and its GitHub Actions CI. Use when the user wants to scaffold a repo, initialize project structure, or add one of these one-shot tooling setups to a project.
- License 许可
- MIT
- 所属仓库
- nseng-ai/ns
- 最近更新
- 2026-10-02
- Stars
- ★ 2
- Forks
- 0
01 前言 Front Matter
- name
- project-setup
- description
- Bootstrap and scaffold new projects and their tooling: create a Bun-centric TypeScript project or set up dprint formatting and its GitHub Actions CI. Use when the user wants to scaffold a repo, initialize project structure, or add one of these one-shot tooling setups to a project.
- allowed-tools
- [ "Bash(bun *)", "Bash(bunx *)", "Bash(mkdir *)", "Bash(dprint *)", "Bash(which dprint)", "Bash(brew install dprint)", "Bash(cargo install dprint)", "Bash(ls *)", "Bash(git remote *)", "Bash(git branch *)", "Bash(git symbolic-ref *)" ]
- disable-model-invocation
- true
02 资源文件 12
- 参考文档agents/openai.yaml43 B
- 资产文件assets/dprint-ci.yml471 B
- 资产文件assets/dprint-default.json363 B
- 参考文档references/create-bun-typescript-project.md7.6 KB
- 参考文档references/dprint-plugin-catalog.md576 B
- 参考文档references/setup-dprint-gh-ci.md2.0 KB
- 参考文档references/setup-dprint.md3.5 KB
- 参考文档templates/create-bun-typescript-project/gitignore.md362 B
- 参考文档templates/create-bun-typescript-project/oxc-config.md4.2 KB
- 参考文档templates/create-bun-typescript-project/package-json.md1.8 KB
- 参考文档templates/create-bun-typescript-project/source-files.md1.6 KB
- 参考文档templates/create-bun-typescript-project/tsconfig.md1.2 KB
03 SKILL.md 正文
project-setup
Route one-shot project bootstrap and tooling setup work to the internal playbooks
below. Read the selected reference directly and follow it as the active
playbook. Python-family scaffolding (package/-dev CLI creation, Python CI, PyPI
publishing) lives in the nseng-ai/ns-python repo, not here.
Routes
| Request | Playbook | Scope contract |
|---|---|---|
| Create a Bun TypeScript project | Create a Bun TypeScript project | Scaffold package.json with no build step, strict ESM tsconfig.json, oxlint + oxfmt via ultracite, bun test, bunfig.toml, source files, and tests. |
| Add local dprint setup | Set up dprint | Configure Markdown and TOML formatting plus build-system check/fix integration. Does not add GitHub CI. |
| Add dprint GitHub Actions CI | Set up dprint GitHub Actions CI | Add a workflow that runs dprint check on pushes and PRs. Requires dprint.json or .dprint.json first. |
Routing and dependency order
- Match the request to the narrowest route and read its linked playbook before changing files.
- For a Bun scaffold, preserve the playbook's git-repository and Bun
preconditions, collect all required project information, use every applicable
template under
templates/create-bun-typescript-project/, and validate in the documented order. - For dprint local setup, preserve existing configuration values and perform
only the documented additive operations. Use
assets/dprint-default.jsonas the default configuration source andreferences/dprint-plugin-catalog.mdfor plugin rationale. - For dprint CI, require both an existing dprint configuration and a GitHub
remote, detect or ask for the default branch, and do not overwrite an existing
workflow without confirmation. Use
assets/dprint-ci.ymlas the template. - When the request includes local dprint setup and CI, follow
references/setup-dprint.mdfirst, thenreferences/setup-dprint-gh-ci.md. Never let the CI route create the local dprint configuration.
Boundary
This family is for one-shot project bootstrap and scaffold work: standing a new project up, or adding a tooling setup to a project once. It is not for day-to-day operation of the tools involved—routine dprint runs, ordinary CI edits, or other ongoing workflows.
04 同仓库更多 Skills
pr-make-accountable
Interview a PR author to establish shared understanding of intent and design decisions, then co-author the What / Why / Changes PR body with opt-in Requested reviewer focus.
typescript-style
Opinionated style guide for strict, portable TypeScript. Use when writing, designing, or reviewing TypeScript: type design, boundary validation, error handling, module architecture, and review discipline.
typescript-fake-driven-testing
TypeScript fake-driven testing architecture. Use when writing or reviewing TS code with external dependencies, gateway interfaces, real adapters, in-memory fakes, or CLI scenario tests.
ns-typescript
TypeScript overlay for ns-style projects. Use when editing or reviewing TS in this repo: tsconfig baseline, pnpm/Vitest/oxlint/oxfmt/native tsc commands, relative .ts imports, workspace subpath exports, and the exactOptionalPropertyTypes spread idiom. Repo-specific enforcement (test lanes, time seams, style guard) lives in the host repo's AGENTS.md.
ns-typescript-style-tripwire
Invoke the ns TypeScript style Tripwire against a supplied diff or current branch.
skill-management
Manage skills with `npx skills`: add, edit, remove, rename, update, or list skills (local or GitHub), and the nested `skills/<disposition>/.../<name>/` / flat `.agents/skills/` layout conventions.