Summary
触发场景:编写新代码、重构现有代码、代码审查、添加功能、修复bug时。根据目标文件的编程语言类型,参考对应的代码规范原则。支持的语言包括:Python (.py)、Rust (.rs)、TypeScript/JavaScript (.ts/.tsx/.js/.jsx)。框架相关代码决策需基于官方文档验证。
zhuxining/harness · Archived
触发场景:编写新代码、重构现有代码、代码审查、添加功能、修复bug时。根据目标文件的编程语言类型,参考对应的代码规范原则。支持的语言?
npx skills add zhuxining/harness --skill code-principles
触发场景:编写新代码、重构现有代码、代码审查、添加功能、修复bug时。根据目标文件的编程语言类型,参考对应的代码规范原则。支持的语言包括:Python (.py)、Rust (.rs)、TypeScript/JavaScript (.ts/.tsx/.js/.jsx)。框架相关代码决策需基于官方文档验证。
This repository is archived — consider an actively maintained alternative.
软件设计文档规范集合,?
4 installsObsidian CLI 操作 MyObsidian vault 的强制协议。每当用户提到 Obsidian、vault、知识库、笔记、Dail…
3 installsSimplifies and refines code for clarity, consistency, and maintainability while preserving all …
2 installsRelated neighbors and high-traction skills in the same topics — useful to compare before installing.
Guidance for distinctive, intentional visual design when building new UI or reshaping an existi…
866.4K installsBrowser automation CLI for AI agents. Use when the user needs to interact with websites, includ…
810.4K installsReview UI code for Web Interface Guidelines compliance. Use when asked to "review my UI", "chec…
617.3K installsBuild, deploy, evaluate, optimize, fine-tune, and manage Microsoft Foundry agents, models, and …
576.5K installsDebug Azure production issues on Azure using AppLens, Azure Monitor, resource health, and safe …
568.9K installsOther skills from zhuxining/harness.
npx skills add zhuxining/harness
Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.
main
Files included with this skill beyond the listing page.
SKILL.md
2,231 B
SUMMARY.md
350 B
本技能提供多语言代码规范指导,帮助编写高质量、符合最佳实践的代码。
当执行以下任务时参考对应语言的规范:
根据文件扩展名选择对应的规范文件:
| 文件类型 | 参考文档 | 关键原则 |
|---|---|---|
.py |
[py-principles.md](references/py-principles.md) | 类型安全、现代语法、不可变性、异常处理 |
.rs |
[rust-principles.md](references/rust-principles.md) | 所有权安全、零成本抽象、惯用语法、并发安全 |
.ts, .tsx, .js, .jsx |
[ts-principles.md](references/ts-principles.md) | 类型安全、现代JS/TS、React最佳实践、可访问性 |
训练数据会过时。当对框架用法、API 特性或最佳实践存疑时,优先查阅官方文档而非凭记忆决策。
所有语言通用的关注维度:
框架/库特定代码需参考官方文档,详见各语言文件的「不确定时参考」小节。