← 返回
未分类 中文

Code Quality

Coding style standards, security guidelines, and accessibility requirements. Use when (1) Writing new code, (2) Reviewing code for style/security, (3) Implem...
编码风格标准、安全指南和可访问性要求。适用于(1)编写新代码,(2)审查代码的风格/安全性,(3)实现阶段。
urbantech
未分类 clawhub v1.0.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 3,319
下载
💾 16
安装
1
版本
#latest

概述

Code Quality Standards

Coding Style

  • Naming: camelCase for vars/functions; PascalCase for classes/types
  • Formatting: 4-space indentation; target ≤80 chars (wrap thoughtfully)
  • Comments: Meaningful, current; delete stale comments
  • Security: Never log secrets/PII; validate inputs; least privilege by default
  • Errors/Logs: Explicit error types; structured logs by level; actionable messages

Accessibility & UX Quality

  • Favor semantic roles/labels; keyboard nav and focus order must work
  • Include responsive checks at 375, 768, 1024, 1440 with notes/screenshots
  • Use deterministic test IDs; avoid brittle CSS/XPath

Security & Compliance Guardrails

  • No real credentials in code, tests, or screenshots
  • Use test accounts/fixtures; redact secrets
  • Follow least-privilege and input validation
  • Document threat considerations in PR when relevant

Reference Files

See references/coding-style.md for detailed style guide, formatting rules, comment standards.

See references/security-checklist.md for security validation checklist, threat modeling, PII handling.

See references/accessibility-standards.md for WCAG compliance, semantic HTML patterns, keyboard nav testing.

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-30 02:52 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

Ainative Sdk Quickstart

urbantech
5分钟内快速上手 AINative SDK。适用场景:(1) 首次配置 AINative,(2) 在 React/Next.js/Svelte/Vue SDK 之间进行选择……
★ 0 📥 454

Ci Cd Compliance

urbantech
CI/CD 流水线需求和部署标准。适用于:(1) 设置 CI/CD 流水线,(2) 调试 CI 失败问题,(3) 配置部署工作流
★ 0 📥 552

Ainative Api Discovery

urbantech
帮助代理发现并导航 AINative 的 89+ API 端点。使用场景:(1) 询问"有哪些端点?",(2) 为任务寻找合适的API,(3) 查...
★ 0 📥 538