Getting it into your agent
It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.
git clone --depth 1 https://github.com/majiayu000/spellbooknpx agentmods add skills/majiayu000/spellbook/typescript-projectWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/majiayu000/spellbook/typescript-project)<a href="https://agentmods.dev/skills/majiayu000/spellbook/typescript-project"><img src="https://agentmods.dev/badge/skills/majiayu000/spellbook/typescript-project/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/majiayu000/spellbook/typescript-project"><img src="https://agentmods.dev/badge/skills/majiayu000/spellbook/typescript-project.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector warn
SkillSpector: 2 findings, up to high
These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →
- high Excessive Agency · line 118 Skill selects an external model or provider that may use a different account or billing plan than the operator expects. Undisclosed model switches can cause unexpected cost or quota consumption.Fix: Remove the model/provider override or disclose it prominently and require explicit operator approval before invoking an external coding CLI or billed model.
- medium MCP Rug Pull · line 114 Docker image references without a specific tag (:latest is implicit) or digest (@sha256:...) can be silently replaced by a malicious image.Fix: Pin the image: image:tag or image@sha256:abc123
What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00042 | $0.03291 |
| Opus 5.5 | $0.00017 | $0.01316 |
| Sonnet 5.5 | $0.00008 | $0.00658 |
| Haiku 4.5 | $0.00004 | $0.00329 |
Grade A, and why
typescript-project scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 501 lines — stays where its author put it; the contents beside it link to each section on GitHub.
TypeScript Project Architecture
Core Principles
- Type safety first — Strict mode, no
any, Zod for runtime validation - ESM native — ES Modules by default, Node 22+ / Bun
- Layered architecture — Separate lib/services/adapters
- 200-line limit — No file exceeds 200 lines (see elegant-architecture skill)
- Test reality — Vitest/Bun test, minimal mocks
- No backwards compatibility — Delete, don't deprecate. Change directly, no shims
- LiteLLM for LLM APIs — Use LiteLLM proxy for all LLM integrations, unless specific SDK required
Gotchas
- Bun, Zod, directory layout and LiteLLM choices are activation observations, not proof of task success. Check valid inputs, invalid inputs, state changes and the actual error contract.
- A template can pass service tests and still fail
typecheck; the maintained template'snoUnusedLocalscaught an unused configuration helper in the October 2026 case. Run both. latestdependency declarations do not pin a reproduced run. Keep the generated lockfile with its evidence and record actual installed versions. Don't claim another runtime passed.- A configured proxy URL is not a live model result. Without a provider, verify independent application behavior and explicitly leave the LLM check pending.
No Backwards Compatibility
Delete unused code. Change directly. No compatibility layers.
Why
- Dead code is tech debt
- Compatibility shims add complexity
- Old patterns spread through copy-paste
- "Temporary" workarounds become permanent
Anti-Patterns to Avoid
// ❌ BAD: Renaming but keeping old export
export { newName };
export { newName as oldName }; // "for backwards compatibility"
// ❌ BAD: Unused parameter with underscore
function process(_legacyParam: string, data: Data) { ... }
// ❌ BAD: Deprecated comments instead of deletion
/** @deprecated Use newMethod instead */
export function oldMethod() { ... }
// ❌ BAD: Re-exporting removed functionality
export { removed } from './legacy'; // Keep for existing consumers
// ❌ BAD: Feature flags for old behavior
if (config.useLegacyMode) { ... }
What ships with it
16 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
- reference/architecture.md 8.4 KB
- reference/patterns.md 12 KB
- reference/tech-stack.md 9.4 KB
- templates/project/biome.json 566 B
- templates/project/package.json 735 B
- templates/project/src/adapters/in-memory.repository.ts 909 B runs code
- templates/project/src/adapters/llm.adapter.ts 2.6 KB runs code
- templates/project/src/index.ts 595 B runs code
- templates/project/src/lib/config.ts 1.5 KB runs code
- templates/project/src/lib/errors.ts 1.5 KB runs code
- templates/project/src/lib/index.ts 148 B runs code
- templates/project/src/lib/logger.ts 2.2 KB runs code
- templates/project/src/lib/types.ts 947 B runs code
- templates/project/src/services/example.service.ts 2.3 KB runs code
- templates/project/tests/example.service.test.ts 3.5 KB runs code
- templates/project/tsconfig.json 584 B
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 1mo ago Changed · +11 lines 1437727c9f0a
- 2mo ago First seen · 490 lines · 42 tokens per session scan A 1963b20a2c5f
typescript-project is a skill published in the GitHub repository majiayu000/spellbook (301 stars, last pushed 7d ago), licensed MIT. It adds 42 tokens to every session and 3,291 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.
typescript-project compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| typescript-projectmajiayu000/spellbook | Skill | 301 | 7d ago | MIT | A | 42 | Claude Code, Codex |
| CreateCLIdanielmiessler/LifeOS | Skill | 20k | 12d ago | MIT | A | 88 | Claude Code, Codex |
| setup-ts-deep-modulesvinvcn/mattpocock-skills-zh-CN | Skill | 6.2k | 5d ago | MIT | A | 49 | Claude Code, Codex |
| output-dev-code-stylegrowthxai/output | Skill | 445 | 4d ago | Apache-2.0 | A | 50 | Claude Code |
| frontend-typescript-rulesshinpr/ai-coding-project-boilerplate | Skill | 239 | yesterday | MIT | A | 29 | Claude Code |
| typescript-rulesshinpr/ai-coding-project-boilerplate | Skill | 239 | yesterday | MIT | A | 31 | Claude Code |
| buncode-yeongyu/senpi | Skill | 530 | today | MIT | A | 237 | Claude Code, Codex |