Token导航 LogoToken导航

Agent Skill · 开发规范

coding-guidelines(编码指南)

coding-guidelines 用于记录任务执行中的错误、用户纠正、经验和能力缺口,适合在 OpenClaw 中希望让 Agent 持续沉淀问题、修正和最佳实践时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

coding-guidelines 是开发规范类 Agent Skill,可用宿主为 OpenClaw,通过ClawHub获取,权限为执行命令;许可证为 MIT-0,第三方扫描有提醒项,按安装量在开发规范类的 1,265 个 Skill 里排第 278。

总安装 4,516周安装 192GitHub Stars 公开资料未说明下载 1,582核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
MIT-0
版本
1.0.0

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:coding-guidelines(编码指南)
来源仓库:https://github.com/benzooku/coding-guidelines
安装命令:
openclaw skills install coding-guidelines
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install coding-guidelines

这个 Skill 是做什么的

开发规范类 Skill 用来统一代码风格、目录结构和评审口径,产出多为检查清单或改写建议。

记录编码过程中的错误修正与最佳实践沉淀的知识管理系统。适用于团队协作中统一代码规范与提升新人上手效率场景。自动捕获用户反馈并转化为可复用规则加入后续任务执行。使用时应开启日志记录功能以便持续积累经验库。coding-guidelines 属于开发规范类 Skill,可作为该场景下的辅助能力补充。

注意敏感代码片段不应存入共享知识库以防泄露风险。

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 OpenClaw;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 openclaw skills install coding-guidelines;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要执行命令,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

coding-guidelines 怎么安装?

在终端执行 openclaw skills install coding-guidelines。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

coding-guidelines 支持哪些 AI 工具?

公开资料标注支持 OpenClaw。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

coding-guidelines 需要什么权限?

权限级别是执行命令。安装流程涉及命令执行,可能通过 openclaw skills install coding-guidelines 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

coding-guidelines 是免费的吗?

来源标注的许可证是 MIT-0。本站不代收任何费用,也不托管安装包;能否商用、要不要署名,以许可证原文为准。

coding-guidelines 用的人多吗?

公开数据是累计安装 4,516 次,近一周安装 192 次,下载 1,582 次。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

coding-guidelines 安全吗?

第三方扫描有提醒项,说明存在需要人工确认的行为。安装前请打开源码看清它读了什么、联网到哪里。

值得选的地方和要先想清楚的地方

值得选的地方

  • 专注 OpenClaw 一种宿主,触发方式和使用习惯不用来回切换。
  • 许可证明确为 MIT-0,商用和分发边界好判断。

先想清楚的地方

  • 需要执行命令,装到常用环境前要先评估影响面。
  • 第三方扫描存在提醒项或未通过项,需要人工逐条确认。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 OpenClaw,想直接扩展它能力的人。
  • 需要处理开发规范类任务、又不想每次都手写提示词的人。

不太适合

  • 不能接受 Skill 在你机器上执行命令的人。
  • 需要厂商级技术支持和 SLA 的生产系统。

开发规范类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
vercel-react-best-practices

Vercel React 最佳实践 · Codex、Claude

8,490,72025,918操作浏览器MIT通过
web-design-guidelines

网页设计指南 · Codex、Claude

6,686,01625,885需要联网MIT有提醒
remotion-best-practices

Remotion 最佳实践 · Codex、Claude

6,505,6323,027操作浏览器MIT有提醒
supabase-postgres-best-practices

Supabase Postgres 最佳实践 · Codex、Claude

3,175,5232,030需要联网MIT通过
next-best-practices

Next.js 最佳实践 · Codex、Claude

1,848,240841操作浏览器MIT通过
coding-guidelines

编码指南 · 本页

4,516—执行命令MIT-0有提醒

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

name
ai-coding-guide
description
Apply AI-assisted coding best practices when helping with programming tasks. Use when (1) the user asks for help writing, refactoring, debugging, or architecting code, (2) the user request is too vague or too detailed and needs shaping into an effective AI coding prompt, (3) planning multi-file or complex coding work that benefits from subagent orchestration, (4) the user asks about how to use AI coding tools effectively. Triggers on coding tasks, code reviews, architecture discussions, and requests involving AI coding workflows.

AI Coding Guide

Apply context engineering principles to every coding interaction. Guide the user toward effective collaboration — not just code output.

Core Principles

  1. Context is finite — minimize tokens, maximize signal
  2. Plan before execute — outline approach before writing code
  3. Specific constraints over vague goals — "don't break tests" beats "make it good"
  4. Review output like a junior dev's PR — AI code *looks* right more than it *is* right

Handling User Prompts

When the prompt is too vague

Recognize vague signals: "make it better", "fix this", "add auth", "refactor the code", one-liners without context.

Do not guess. Ask focused clarifying questions (max 3-4):

  1. What — "What specifically should change? What's the end state?"
  2. Why — "What problem are you solving? What's broken or missing?"
  3. Constraints — "Any tech stack limits, existing patterns to follow, things I must not break?"
  4. Scope — "Is this a quick fix or a rework? How many files/modules are involved?"

Example response to a vague prompt:

"I can help with auth — before I dive in, a few quick ones: are we talking email/password, OAuth, or both? And is this a greenfield add or fitting into an existing user system?"

If the task is small and the vague direction is clear enough, just do it. Don't over-clarify simple things like "add a loading spinner" or "fix the typo in line 42."

When the prompt is too detailed

Recognize over-specification: micromanaging the implementation, specifying every variable name, dictating control flow, listing steps that the model can figure out.

Acknowledge the detail, then extract intent:

"Got it — sounds like the goal is [restate the actual intent in one sentence]. I'll follow your constraints on [X, Y, Z] but I might adjust the implementation details if I find a cleaner approach. Cool?"

Don't be a contrarian about it. If they specified every step, they probably have a reason (past bad experiences, specific architecture). Follow their structure but flag if something seems off.

Red flag: If the prompt is 500+ words of step-by-step instructions, ask "Is this a spec you've already validated, or should I suggest alternatives too?" — some people paste specs, others are micromanaging from anxiety.

The "Goldilocks prompt" target

Aim for prompts that include:

  • Intent (what + why)
  • Constraints (tech stack, patterns, things not to break)
  • Examples (if applicable — "like we did in the auth module")
  • NOT the step-by-step how (that's the model's job)

Context Management for Coding Tasks

Before starting non-trivial work

  1. Read relevant files first — understand the codebase before proposing changes
  2. Identify the minimum context — only load files that matter for THIS task
  3. Check for existing patterns — how does this codebase handle similar things?

During execution

  • Compact as you go — summarize completed subtasks, don't carry raw exploration forward
  • One task, one context window — don't let unrelated exploration pollute coding context
  • Commit checkpoints — suggest git commit between logical steps so changes are recoverable

Context to always include

  • Tech stack and version constraints
  • Existing patterns for the thing being built (auth, error handling, data access)
  • Test setup and conventions
  • Things the user has strong opinions about (check MEMORY.md / friend memory)

Context to exclude

  • Entire files when only one function matters
  • Previous failed attempts (start fresh instead)
  • Unrelated modules "for reference"

Subagent Use for Coding

When to spawn subagents

  • Multi-file changes spanning 3+ files
  • Tasks with clear independent parts (frontend + backend + tests)
  • Research/exploration that would clutter the coding context
  • Parallel workstreams on different parts of the codebase

When NOT to spawn subagents

  • Single-file focused changes
  • Debugging (needs tight feedback loops)
  • Tasks where parts share files (sequential > parallel to avoid conflicts)
  • Simple questions or explanations

Subagent guidelines

  • One clear job per subagent — vague tasks waste tokens
  • Minimum viable context — tell the subagent only what it needs
  • No shared file writes — queue tasks that touch the same files
  • Review output before proceeding — don't blindly chain subagent results
  • Use cheaper models for exploration — save expensive models for complex reasoning

Planning Workflow

For any task touching 2+ files or involving architectural decisions:

  1. Understand — Read relevant code, clarify requirements
  2. Plan — Write a brief plan (3-7 steps max). State what files change and why.
  3. Review — Get user approval before executing
  4. Execute — Implement step by step, committing between steps
  5. Verify — Run tests, check edge cases, review the diff

For simple tasks (single file, clear intent): skip planning, just do it.

Anti-Patterns to Avoid

  • The "one more turn" trap — After 3+ failed fix attempts, restart with a fresh prompt instead of piling on corrections
  • Context dumping — Loading entire codebase "for reference" instead of targeted reads
  • Over-planning simple tasks — Don't write a plan for "add a null check"
  • Under-planning complex tasks — Don't start coding a multi-module feature without an approach
  • Ignoring existing patterns — Check how the codebase does things before proposing new approaches
  • Trusting output at face value — Read the code, run the tests, check edge cases

Quick Reference: Prompt Quality Checklist

Before executing a coding task, mentally check:

  • [ ] Do I understand what the user wants (not just what they said)?
  • [ ] Do I have enough context to succeed (files, patterns, constraints)?
  • [ ] Am I carrying too much context (can I trim)?
  • [ ] Is this complex enough to need a plan first?
  • [ ] Should parts of this run in parallel via subagents?

References

平台分布

OpenClaw

88.56%
按下载量换算1,401

安全审计

VirusTotal

通过

ClawScan

可疑

Static analysis

可疑

权限和风险

执行命令

安装流程涉及命令执行,可能通过 openclaw skills install coding-guidelines 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在提醒或未通过项,安装前请自行复核。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills