ClawKit Logo
ClawKitReliability Toolkit
Back to Registry
Official Verified

ai-coding-guide

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.

skill-install — Terminal

Install via CLI (Recommended)

clawhub install openclaw/skills/skills/benzooku/coding-guidelines
Or

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

Metadata

Author@benzooku
Stars4473
Views1
Updated2026-05-01
View Author Profile
AI Skill Finder

Not sure this is the right skill?

Describe what you want to build — we'll match you to the best skill from 16,000+ options.

Find the right skill
Add to Configuration

Paste this into your clawhub.json to enable this plugin.

{
  "plugins": {
    "official-benzooku-coding-guidelines": {
      "enabled": true,
      "auto_update": true
    }
  }
}
Safety NoteClawKit audits metadata but not runtime behavior. Use with caution.