一键导入
typescript-standard
Activate when writing, reviewing, or testing TypeScript code to enforce clean code and TDD standards.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Activate when writing, reviewing, or testing TypeScript code to enforce clean code and TDD standards.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Activate when an Engineering Manager needs to shape a rough initiative into a clear, scoped, outcome-oriented brief before execution.
Activate when reviewing branches, commits, or pull requests using the emoji-driven review protocol.
Activate when managing conversation history in long sessions, choosing compression strategies, or preserving critical information during context truncation.
Activate when designing agent systems, debugging unexpected agent behavior, or optimizing context usage and attention budgets.
Activate when hitting context limits, experiencing quality degradation in long sessions, or needing to extend effective context capacity.
Activate when generating in-code comments or system documentation using the Diátaxis framework.
| name | typescript-standard |
| version | 1.0.0 |
| description | Activate when writing, reviewing, or testing TypeScript code to enforce clean code and TDD standards. |
| triggers | ["typescript","ts","jest","playwright","testing","react","tdd"] |
Language-specific rules for TypeScript projects covering clean code constraints, TDD workflow, and testing framework conventions.
any, interfaces for all data structuresany. Use interfaces for all data structures.entity.data-builder.ts pattern for test data.file-name.spec.ts and place tests near the production code.InMemoryRepositories for adapters.Test structure:
// file: create-user.spec.ts
describe('CreateUser', () => {
it('should create a user with valid data', () => {
// Given
const userData = aUser().withEmail('test@example.com').build();
// When
const result = createUser(userData);
// Then
expect(result.email).toBe('test@example.com');
});
});
any*.spec.tsrecursive-exploration (reasoning model), refactor (cleanup workflow), code-review (review checklist)