跳到正文
cccskills
免费在 GitHub 公开

llm-coding-guardrails

Behavioral guardrails to reduce common LLM coding mistakes with a caution-first approach.

中文简介正在准备中。当前显示原文说明。

查看安装方法

包含的文件(2)

  • SKILL.md2.4 KB
  • agents/openai.yaml174 B

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

LLM Coding Guardrails

Behavioral guidelines to reduce common LLM coding mistakes.

Tradeoff: These guidelines bias toward caution over speed. For trivial tasks, use judgment.

1. Think Before Coding

Do not assume. Do not hide confusion. Surface tradeoffs.

Before implementing:

  • State assumptions explicitly. If uncertain, ask.
  • If multiple interpretations exist, present them. Do not pick silently.
  • If a simpler approach exists, say so.
  • If something is unclear, stop and ask.

2. Simplicity First

Write the minimum code that solves the problem. Nothing speculative.

  • No features beyond what was asked.
  • No abstractions for single-use code.
  • No configurability that was not requested.
  • No error handling for impossible scenarios.
  • If code is substantially longer than needed, simplify it.

Quality check:

  • Would a senior engineer call this overcomplicated?
  • If yes, simplify.

3. Surgical Changes

Touch only what is necessary. Clean up only what your change affected.

When editing existing code:

  • Do not improve adjacent code, comments, or formatting unless required.
  • Do not refactor unrelated working code.
  • Match existing style unless asked to change it.
  • If you notice unrelated dead code, mention it. Do not delete it.

When your changes create orphans:

  • Remove imports/variables/functions made unused by your own change.
  • Do not remove pre-existing dead code unless asked.

Test:

  • Every changed line must map directly to the request.

4. Goal-Driven Execution

Define success criteria and iterate until verified.

Turn requests into verifiable goals:

  • "Add validation" -> "Write tests for invalid inputs, then make them pass"
  • "Fix the bug" -> "Write a test that reproduces it, then make it pass"
  • "Refactor X" -> "Ensure tests pass before and after"

For multi-step tasks, state a brief plan with checks:

  1. [Step] -> verify: [check]
  2. [Step] -> verify: [check]
  3. [Step] -> verify: [check]

Strong success criteria support independent iteration. Weak criteria (for example, "make it work") require repeated clarification.

When to Use

Use this skill when the task directly matches the workflow described above.

When Not to Use

Do not use this skill when the request is unrelated, low-stakes, or better handled by a simpler direct response.

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

Surface and categorize assumptions underlying product strategy. Use early in development to document what you're betting on.

中文简介正在准备中。当前显示原文说明。

itseffi/agentic-os1172026年10月7日 更新

Prioritize assumptions by risk and importance. Use after assumption mapping to decide what to test first.

中文简介正在准备中。当前显示原文说明。

itseffi/agentic-os1172026年10月7日 更新

Sync Jira issues with local tasks. Use during daily planning or when user asks about Jira issues.

中文简介正在准备中。当前显示原文说明。

itseffi/agentic-os1172026年10月7日 更新

Design backend architecture for implementation with API contracts, data model changes, service boundaries, security, and observability.

中文简介正在准备中。当前显示原文说明。

itseffi/agentic-os1172026年10月7日 更新

Turn ideas into designs through collaborative dialogue. Use before any creative work - features, components, or modifications.

中文简介正在准备中。当前显示原文说明。

itseffi/agentic-os1172026年10月7日 更新

Check Google Calendar for today's schedule. Use during daily planning or when user asks about their calendar.

中文简介正在准备中。当前显示原文说明。

itseffi/agentic-os1172026年10月7日 更新

查看 itseffi 的全部技能

报告此技能的问题