agentleFS
znlnziznlnzi/claude-config-studio/.claude/skills/coding-standards/SKILL.md

coding-standards

Skill0 starsChanged 9 months agoMITView on GitHub

编程语言最佳实践和编码标准

138 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use everything-claude-code, everything-claude-code-conventions and 8 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • InfopibeSkill

    everything-claude-code

    Also in 9 projects that use this

  • mryeastcodeSkill

    everything-claude-code-conventions

    Development conventions and patterns for everything-claude-code. JavaScript project with conventional commits.

    Also in 8 projects that use this

  • niloykumarbarmanSkill

    agent-sort

    Build an evidence-backed ECC install plan for a specific repo by sorting skills, commands, rules, hooks, and extras into DAILY vs LIBRARY buckets using parallel repo-aware review passes. Use when ECC should be trimmed to what a project actually needs instead of loading the full bundle.

    Also in 8 projects that use this

  • HABUBUSSSkill

    project-guidelines-example

    Also in 10 projects that use this

  • HABUBUSSSkill

    strategic-compact

    Suggests manual context compaction at logical intervals to preserve context through task phases rather than arbitrary auto-compaction.

    Also in 38 projects that use this

  • InfopibeSkill

    investor-outreach

    Draft cold emails, warm intro blurbs, follow-ups, update emails, and investor communications for fundraising. Use when the user wants outreach to angels, VCs, strategic investors, or accelerators and needs concise, personalized, investor-facing messaging.

    Also in 22 projects that use this

  • +1 more from Infopibe

The file

Files
SKILL.md

编码标准技能

通用原则

不可变性

  • 始终创建新对象,不改变现有对象
  • 使用 const/final/val 声明不变量
  • 防止隐藏的副作用

文件组织

  • 每个文件 200-400 行,最大 800 行
  • 按功能分组,不按文件类型
  • 一个文件一个主要职责

函数设计

  • 每个函数 < 50 行
  • 单一职责
  • 有意义的命名(动词+名词)
  • 参数不超过 4 个

错误处理

  • 每个层级实施错误管理
  • UI 层提供用户友好消息
  • 服务端记录详细上下文
  • 绝不默默吞掉错误

输入验证

  • 在系统入口点验证所有外部数据
  • 使用基于模式的验证(Zod、Pydantic)
  • 快速失败并提供描述性反馈

完成前检查清单

  • 代码可读性和命名质量
  • 函数 < 50 行
  • 文件 < 800 行
  • 嵌套 ≤ 4 层
  • 健壮的错误处理
  • 无硬编码配置值
  • 不可变模式一致应用

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.