technical-spec SKILL.md skillA

technical-spec from shinpr/ai-coding-project-boilerplate is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.

Install it, pinned
mdr add shinpr/ai-coding-project-boilerplate/technical-spec@git:20260923.03f66be

Pins git:20260923.03f66be in mdr.lock. Pin the fingerprint instead.

Audit grade
A, 17 of 17 checks passed
Kind
SKILL.md skill
Repository
shinpr/ai-coding-project-boilerplate
Path
.claude/skills-zh-CN/technical-spec/SKILL.md
Versions recorded
2
Latest version
git:20260923.03f66be, committed Sep 23, 2026
First version recorded
Aug 31, 2026
Size
5,302 bytes
Repository stars
234
License
MIT

定义环境变量、架构设计以及构建/测试命令。在配置环境或设计架构时使用。.

Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.

What the file says

# 技术设计规则

## 前置条件检测

在应用与技术或命令相关的具体规则之前,先检查清单文件、锁文件、构建/测试配置、CI 定义以及具有代表性的源文件。只有当仓库中的证据明确指出某个工具、脚本、路径别名或运行时,才将其视为已观察到。将从周边模式推断出的结论标注为推断。当某个缺失的决策会影响架构、兼容性、安全性或验证时,停下来明确指出所需的具体配置或用户决策。

## 基础技术栈方针
当仓库配置确认使用 TypeScript 应用栈时,以下规则适用。通过将当前需求与已接受的约束映射到明确的模块职责、依赖方向、数据流和验证边界来选择架构。

## 环境变量管理与安全

### 环境变量管理
- 集中管理环境变量,以及用于保证其类型安全的构建时校验机制
- 通过一个带类型的配置边界读取环境变量;应用代码只使用经过校验的配置值
- 仅当需求中定义了缺省情况下的有效行为时,才为变量设置默认值;否则应在配置校验阶段失败,并给出该变量名称和期望格式

### 安全
- 将本地 `.env` 文件排除在版本控制之外,并为所需的变量名提供不含机密信息的示例文件
- 从已配置的密钥存储或运行时环境边界加载 API 密钥和机密信息
- 仅记录并返回当前信任边界所批准的字段;在跨越不可信边界返回数据前,屏蔽凭据、令牌、个人数据和内部诊断信息

## 架构设计

### 架构设计原则
使用以下可观测的决策来选择架构:

- **职责**:每个模块/层要明确说明自己拥有的行为以及委托出去的行为
- **依赖方向**:导入和运行时调用应遵循在配置或具有代表性的实现中观察到的项目边界规则
- **状态/数据所有权**:每个持久化或可变的值都应有唯一的权威所有者
- **验证边界**:每个公开契约都应有能够观测到它的单元测试、集成测试或 E2E 检查

## 统一数据流原则

#### 基本原则
1. **单一数据源**:同一信息只存放在一个地方
2. **结构化数据优先**:使用解析后的对象而非 JSON 字符串
3. **职责分离**:每一层要明确说明自己拥有的数据或行为,以及其他层使用它的边界

#### 数据流最佳实践
- **输入端校验**:在输入层校验数据,并以类型安全的形式在内部传递
- **集中式转换**:将数据转换逻辑集中到专门的工具函数中
- **结构化日志**:在数据流的每个阶段输出结构化日志

## 构建与测试
按以下优先顺序从 `packageManager` 字段、锁文件或既有的 CI 命令中选择包管理器。只执行所选清单文件中存在的脚本。

### 构建命令
- `build` - TypeScript 构建
- `type-check` - 类型检查(不生成产物)

### 测试命令
- `test` - 运行测试

### 质量保障机制的识别
…

Read the whole file at its exact version.

How to install

The exact contents, by fingerprint
mdr add shinpr/ai-coding-project-boilerplate/technical-spec@sha256:583f1730f58c1208

The line at the top of this page pins the label git:20260923.03f66be, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_g7tacvoyflrzi45u.svg)](https://markdownregistry.com/a/art_g7tacvoyflrzi45u)

2 badge image fetches in 30 days. What the badge shows.

Versions

The registry has recorded 2 versions of this file, between Aug 31, 2026 and Sep 23, 2026, about one every 23 days.

versioncommittedcommitsizeaudit
git:20260923.03f66be latest2026-09-23 03f66be 5,302 BA view · diff
git:20260831.b1830372026-08-31 b183037 5,248 BA view

Audit of the latest version

A  17 of 17 checks passed. Fixed automatic checks with no AI involved, so the same checks give the same answer every run.
  • pass: Frontmatter block present
  • pass: Frontmatter declares a name
  • pass: Frontmatter declares a description
  • pass: Size between 200 bytes and 200 KB (5302 bytes)
  • pass: No zero-width or bidi control characters
  • pass: No instruction hidden inside an HTML comment
  • pass: No link to an exfiltration or paste host
  • pass: No credential-shaped string
  • pass: No instruction to send local credentials anywhere
  • pass: No text hidden with inline styles
  • pass: No prompt-injection phrasing
  • pass: No curl or wget piped into a shell
  • pass: No recursive delete of root, home or parent
  • pass: No instruction to read or print local credentials
  • pass: No base64 blob over 200 characters
  • pass: No link to a raw IP address
  • pass: No script tag

Source

GitHub

shinpr/ai-coding-project-boilerplate · 234 stars · license MIT · pushed 2026-10-14 · branch main

API

GET https://markdownregistry.com/api/v1/artifacts/art_g7tacvoyflrzi45u
GET https://markdownregistry.com/api/v1/resolve?ref=shinpr/ai-coding-project-boilerplate/technical-spec
GET https://markdownregistry.com/api/v1/blob/583f1730f58c1208fa265af9cdaf285ffb8864a5dcb7e4fbec7de643f8f40699

Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.

Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.

More from shinpr/ai-coding-project-boilerplate

coding-standards SKILL.md skill
shinpr/ai-coding-project-boilerplate · .claude/skills-en/coding-standards/SKILL.md · Detects code smells, anti-patterns, and readability issues. Use when implementing features, reviewing code, or…
git:20261014.578fed5 · audit A · 234 stars
documentation-criteria SKILL.md skill
shinpr/ai-coding-project-boilerplate · .claude/skills-en/documentation-criteria/SKILL.md · Determines which PRD, ADR, UI Spec, Design Doc, and Work Plan a change requires and where each is stored. Use when…
git:20260923.86a3d79 · audit A · 234 stars
frontend-technical-spec SKILL.md skill
shinpr/ai-coding-project-boilerplate · .claude/skills-en/frontend-technical-spec/SKILL.md · Defines React environment, component architecture, state/data flow, build verification, and frontend non-functional…
git:20260923.03f66be · audit A · 234 stars
frontend-typescript-rules SKILL.md skill
shinpr/ai-coding-project-boilerplate · .claude/skills-en/frontend-typescript-rules/SKILL.md · Applies React/TypeScript type safety, component design, and state management rules. Use when implementing React…
git:20260912.c0d4362 · audit A · 234 stars
frontend-typescript-testing SKILL.md skill
shinpr/ai-coding-project-boilerplate · .claude/skills-en/frontend-typescript-testing/SKILL.md · Designs frontend tests using the repository's configured React test and browser harnesses, including RTL, MSW, Vitest…
git:20261014.578fed5 · audit A · 234 stars
implementation-approach SKILL.md skill
shinpr/ai-coding-project-boilerplate · .claude/skills-en/implementation-approach/SKILL.md · Selects implementation strategy (vertical slice, horizontal, or hybrid) with risk assessment. Use when planning feature…
git:20261014.578fed5 · audit A · 234 stars
integration-e2e-testing SKILL.md skill
shinpr/ai-coding-project-boilerplate · .claude/skills-en/integration-e2e-testing/SKILL.md · Selects and designs the smallest integration/E2E test set that proves accepted behavior at an observable boundary. Use…
git:20261014.578fed5 · audit A · 234 stars
llm-friendly-context SKILL.md skill
shinpr/ai-coding-project-boilerplate · .claude/skills-en/llm-friendly-context/SKILL.md · Clarifies inputs, outputs, success criteria, decisions, and unresolved conditions so downstream agents can execute…
git:20260923.86a3d79 · audit A · 234 stars
project-context SKILL.md skill
shinpr/ai-coding-project-boilerplate · .claude/skills-en/project-context/SKILL.md · Marks project context as unconfigured until domain constraints, repository quality standards, phase, conventions, and…
git:20260901.b347ae2 · audit A · 234 stars
requirement-convergence SKILL.md skill
shinpr/ai-coding-project-boilerplate · .claude/skills-en/requirement-convergence/SKILL.md · Separates the outcome a change must produce from the requirements proposed to reach it, records what the user excluded…
git:20260923.558b381 · audit A · 234 stars
skill-optimization SKILL.md skill
shinpr/ai-coding-project-boilerplate · .claude/skills-en/skill-optimization/SKILL.md · Evaluates and optimizes skill file quality using 9 content patterns and 10 editing principles. Use when creating…
git:20260831.b183037 · audit A · 234 stars
subagents-orchestration-guide SKILL.md skill
shinpr/ai-coding-project-boilerplate · .claude/skills-en/subagents-orchestration-guide/SKILL.md · Coordinates subagents through scale-based planning, approval, implementation, verification, and escalation flows. Use…
git:20261003.24e6460 · audit A · 234 stars

Every file in shinpr/ai-coding-project-boilerplate

Other files named technical-spec

technical-spec SKILL.md skill
majiayu000/spellbook · skills/technical-spec/SKILL.md · Technical specification and design document expert. Use when writing design docs, RFCs, ADRs, or evaluating technology…
git:20260523.d39dd11 · audit A · 288 stars
technical-spec SKILL.md skill
shinpr/ai-coding-project-boilerplate · .claude/skills-en/technical-spec/SKILL.md · Defines environment variables, architecture design, and build/test commands. Use when configuring environment or…
git:20260923.03f66be · audit A · 234 stars
technical-spec SKILL.md skill
shinpr/ai-coding-project-boilerplate · .claude/skills-ja/technical-spec/SKILL.md · 環境変数、アーキテクチャ設計、ビルド・テストコマンドを定義。環境設定、アーキテクチャ設計時に使用。
git:20260923.03f66be · audit A · 234 stars

Browse by kind, by grade A, or by owner.