← 返回 Skills 市场
djc00p

Coding Standards

作者 Deonte Cooper · GitHub ↗ · v1.0.0 · MIT-0
linuxdarwinwin32 ✓ 安全检测通过
218
总下载
0
收藏
4
当前安装
1
版本数
在 OpenClaw 中安装
/install coding-standards
功能描述
Universal coding standards for TypeScript, JavaScript, React, and Node.js. Principles: readability first, KISS, DRY, YAGNI. Covers naming, type safety, error...
使用说明 (SKILL.md)

Coding Standards & Best Practices

Universal standards for maintainable, scalable TypeScript/JavaScript code.

Quick Start

  1. Readability First — Clear names, self-documenting code
  2. Type Safety — Avoid any, use explicit interfaces
  3. Error Handling — Try-catch with specific error types
  4. Immutability — Use spread operator, never direct mutation
  5. Test Structure — AAA pattern (Arrange, Act, Assert)

Core Principles

KISS — Simplest solution that works. No premature optimization.

DRY — Extract common logic into reusable functions and components.

YAGNI — Don't build before it's needed. Start simple, refactor when needed.

Readability — Code is read 10x more than written. Clarity over cleverness.

Naming Standards

Variables

// Good: Descriptive, type-hinted by name
const marketSearchQuery = 'election'
const isUserAuthenticated = true
const totalRevenue = 1000

// Bad: Single-letter, unclear
const q = 'election'
const flag = true
const x = 1000

Functions

// Good: Verb-noun pattern
async function fetchMarketData(id: string) { }
function calculateSimilarity(a: number[], b: number[]) { }
function isValidEmail(email: string): boolean { }

// Bad: Unclear or noun-only
async function market(id: string) { }
function similarity(a, b) { }
function email(e) { }

References

  • references/typescript.md — type safety, immutability, async patterns
  • references/react.md — component structure, hooks, state management
  • references/api-design.md — REST conventions, validation, error responses
  • references/file-org.md — project structure, file naming
  • references/testing.md — test patterns, AAA structure, test naming
  • references/code-smells.md — anti-patterns, long functions, deep nesting, magic numbers

Adapted from everything-claude-code by @affaan-m (MIT)

安全使用建议
This skill is a documentation-only coding-standards guide and appears internally consistent and low-risk. Things to consider before installing: (1) the source/homepage is unknown — if provenance matters, verify the author or prefer a known source, (2) example snippets mention environment variables and API keys (OpenAI, Stripe, NEXT_PUBLIC_API_URL) for illustration only — the skill itself won't read or transmit secrets, and (3) review the included license/attribution (it cites an MIT adaptation) to ensure it fits your usage policies. If you later find a version that adds scripts, network calls, or install steps, re-evaluate for requests for credentials or downloads from untrusted URLs.
功能分析
Type: OpenClaw Skill Name: coding-standards Version: 1.0.0 The bundle is a comprehensive documentation set providing coding standards and best practices for TypeScript, JavaScript, React, and Node.js. It contains no executable code, scripts, or malicious instructions, focusing entirely on educational content such as API design, testing patterns, and code smell detection across files like SKILL.md and various reference documents.
能力标签
cryptocan-make-purchases
能力评估
Purpose & Capability
Name/description (coding standards for TypeScript/JS/React/Node) match the delivered artifacts: SKILL.md and a set of reference markdown files. The skill requests no binaries, no env vars, and has no install steps — all proportionate for a documentation-only skill.
Instruction Scope
SKILL.md and references are purely documentation and examples; they do not instruct the agent to read files, call external endpoints, or access secrets. A few example snippets reference environment variables or API keys (e.g., NEXT_PUBLIC_API_URL, STRIPE_KEY, OpenAI) as illustrative code, but the runtime instructions do not require or instruct using them.
Install Mechanism
No install spec and no code files to execute. Being instruction-only means nothing will be written to disk or downloaded during install — lowest-risk install behavior.
Credentials
The skill declares no required environment variables or credentials (proportional). Example snippets reference common env names and API keys for demonstration; these are not required by the skill but users should be aware examples mention secrets that real projects might use.
Persistence & Privilege
always is false and the skill is user-invocable (normal). The skill does not request persistent presence or modify other skills/config; autonomous model invocation is allowed by default but this skill's content does not give it extra privilege.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install coding-standards
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /coding-standards 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release. Universal TypeScript/JavaScript/React coding standards. Adapted from everything-claude-code by @affaan-m (MIT)
元数据
Slug coding-standards
版本 1.0.0
许可证 MIT-0
累计安装 4
当前安装数 4
历史版本数 1
常见问题

Coding Standards 是什么?

Universal coding standards for TypeScript, JavaScript, React, and Node.js. Principles: readability first, KISS, DRY, YAGNI. Covers naming, type safety, error... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 218 次。

如何安装 Coding Standards?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install coding-standards」即可一键安装,无需额外配置。

Coding Standards 是免费的吗?

是的,Coding Standards 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Coding Standards 支持哪些平台?

Coding Standards 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(linux, darwin, win32)。

谁开发了 Coding Standards?

由 Deonte Cooper(@djc00p)开发并维护,当前版本 v1.0.0。

💬 留言讨论