用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/cardinalconseils/claude-starter --skill language-rules命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
Ecosystem monitoring — breaking changes, deprecations, security alerts, opportunity tracking, bulletin generation.
Project kickstart — idea to scaffolded project: research, monetization, brand, ERD, architecture, deploy config.
Unified Dashboard SaaS Build Sequence — 12-stage methodology for multi-role SaaS products (super admin/admin/user/vendor). Enforces single application with role-gated dashboard visibility, never separate dashboards per role, generated from one permissions matrix. Use for multi-role SaaS, admin/user/vendor roles, role-gated dashboard, permission matrix, tenant roles, super admin panel design.
基于 SOC 职业分类
正在显示 SKILL.md
| name | language-rules |
| description | Language-specific coding rules — generated at bootstrap time based on detected stack |
| triggers | ["/cks:bootstrap","manual"] |
| allowed-tools | Read, Grep, Glob, Write |
| model | sonnet |
During /cks:bootstrap, after detecting the project's tech stack, generate language-specific coding rules that Claude follows for all code in this project. Rules are written to .claude/rules/ and loaded automatically.
Based on detected stack, generate rules from the catalogs below. Only generate rules for languages/frameworks actually used in the project.
Write to .claude/rules/typescript.md:
# TypeScript Rules
## Strict Mode
- Always use `strict: true` in tsconfig.json
- No `any` type — use `unknown` if type is truly unknown
- No `@ts-ignore` — fix the type error or use `@ts-expect-error` with explanation
## Patterns
- Prefer `const` over `let`, never `var`
- Use discriminated unions over type casting
- Prefer `interface` for object shapes, `type` for unions/intersections
- Use `satisfies` operator for type-safe object literals
- Explicit return types on exported functions
## Error Handling
- Never catch and ignore — at minimum log
- Use typed errors (extend Error class)
- Never `throw` strings — always Error objects
## Imports
- Use path aliases (configured in tsconfig)
- No circular imports
- Barrel exports only at package boundaries
## React (if applicable)
- Functional components only
- Custom hooks for shared logic
- No inline styles — use CSS modules or styled components
- Keys on list items — never use index as key
- Memoize expensive computations (useMemo, useCallback with deps)
Write to .claude/rules/python.md:
# Python Rules
## Type Hints
- All function signatures must have type hints
- Use `from __future__ import annotations` for modern syntax
- Use `TypeVar` and `Generic` for generic functions/classes
## Patterns
- f-strings over .format() or % formatting
- Dataclasses or Pydantic models for structured data
- Context managers for resource management
- List comprehensions over map/filter (when readable)
- `pathlib.Path` over `os.path`
## Error Handling
- Specific exception types — never bare `except:`
- Custom exceptions for domain errors
- Don't use exceptions for control flow
## Imports
- Standard library → third-party → local (isort order)
- Absolute imports over relative
- No wildcard imports (`from x import *`)
## Django (if applicable)
- Fat models, thin views
- Always use `get_object_or_404` in views
- Queryset annotations over Python-side computation
- Never raw SQL unless performance-critical (and then parameterized)
Write to .claude/rules/go.md:
# Go Rules
## Error Handling
- Always check errors — never `_ = someFunc()`
- Wrap errors with context: `fmt.Errorf("doing X: %w", err)`
- Use sentinel errors for expected conditions
- Custom error types for domain errors
## Patterns
- Accept interfaces, return structs
- Table-driven tests
- Context propagation through call chains
- Prefer composition over inheritance
- Short variable names in small scopes, descriptive in large
## Concurrency
- Don't communicate by sharing memory; share memory by communicating
- Always use `context.Context` for cancellation
- Close channels from the sender side
- Use `sync.WaitGroup` for goroutine coordination
## Project Structure
- Follow standard Go project layout
- Internal packages for private code
- `cmd/` for entry points
Write to .claude/rules/rust.md:
# Rust Rules
## Ownership
- Prefer borrowing over cloning
- Use `Cow<str>` when ownership is conditional
- Minimize `Arc<Mutex<T>>` — prefer message passing
## Error Handling
- Use `thiserror` for library errors, `anyhow` for application errors
- Never `unwrap()` in production code — use `?` operator
- Custom error enums for domain logic
## Patterns
- Prefer iterators over indexed loops
- Use `impl Trait` for return types when possible
- Builder pattern for complex struct construction
- Derive macros for common traits (Debug, Clone, PartialEq)
During /cks:bootstrap, after stack detection:
1. Detect languages: scan for tsconfig.json, pyproject.toml, go.mod, Cargo.toml, etc.
2. Detect frameworks: scan for next.config.*, django settings, express patterns
3. Generate only relevant rule files to .claude/rules/
4. Report: "Generated coding rules for: TypeScript, React, Python"
{project_root}/
.claude/
rules/
typescript.md ← Generated if TS detected
python.md ← Generated if Python detected
go.md ← Generated if Go detected
rust.md ← Generated if Rust detected
This skill ships with opinionated defaults. Review and adapt to your needs:
references/catalog-index.mdRead, Grep, Glob, Write. Add tools if needed.sonnet. Remove to use your default model.