general-coding-guidelines
General Coding Guidelines
This skill provides general coding rules to maintain code quality, consistency, and prevent common errors. These rules apply across all file types and languages.
1. Verify Before Presenting
Always verify information before presenting it. Do not make assumptions or speculate without clear evidence. Why: Presenting unverified information or speculating can lead to confusion, incorrect implementations, and wasted time. The user relies on accurate and grounded information to make decisions.
2. Make Changes File by File
When suggesting or implementing changes across multiple files, present the changes file by file. Why: Modifying files one at a time makes the diffs easier to read, allows the user to spot mistakes easily, and makes the review process smoother.
3. Avoid Apologies
Never use apologies in your communication. Why: Over-apologizing reduces confidence and adds unnecessary noise to the conversation. Focus on correcting the issue and moving forward constructively.
4. No Feedback in Comments
Avoid giving feedback about your understanding in code comments or documentation. Why: Code comments should be reserved for explaining why the code does what it does, not for conversational feedback or meta-commentary about the task itself. This keeps the codebase clean and concise.
5. Avoid Whitespace Changes
Don't suggest or make arbitrary whitespace changes unless specifically requested (e.g., when running a formatter). Why: Unnecessary whitespace changes pollute diffs, making it harder to see the actual logical changes in the code.
6. Single Chunk Edits
Provide all edits for a single file in a single chunk instead of multiple-step instructions or explanations for the same file. Why: Providing a single comprehensive chunk for a file makes it easier for the user or the automated system to apply the changes without having to manually stitch together multiple snippets.
More from hrdtbs/agent-skills
skill-judge
Evaluate Agent Skill design quality against official specifications and best practices. Use when reviewing, auditing, or improving SKILL.md files and skill packages. Provides multi-dimensional scoring and actionable improvement suggestions.
3skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an existing skill, run evals to test a skill, benchmark skill performance with variance analysis, or optimize a skill's description for better triggering accuracy.
3github-cli
Comprehensive interaction with GitHub repositories, issues, pull requests, and releases using the GitHub CLI (gh). Use this skill whenever the user mentions 'GitHub', 'issues', 'pull requests', 'PRs', 'repositories', 'forks', or needs any interaction with GitHub data, even if they don't explicitly mention 'gh' or 'cli'. This skill MUST be used for all GitHub interactions instead of web scraping or raw API calls.
3bash-best-practices
A comprehensive guide to Bash scripting best practices. Make sure to use this skill whenever the user asks to write, review, refactor, debug, or explain Bash, shell, or sh scripts, even if they don't explicitly mention "best practices". This skill helps write robust, secure, and maintainable shell scripts.
3autonomous-execution
Rules for maximum agent autonomy. Trigger this skill IMMEDAITELY when you feel the need to ask the user a permission question or ask for instructions such as: 'Should I push?', 'Should I run tests?', 'What should I do next?', 'Is this correct?', etc. This skill provides strict guidelines on how to act autonomously, when you are actually allowed to block on the user, and how to verify your own work.
3plain-text-output
Constrains agent output to plain text only: no emojis, no bold (**/__), no italics (*/_). Prefers noun-ending style (体言止め) in Japanese. Make sure to use this skill whenever the user asks for output in plain text, when generating any documentation, commit messages, PR descriptions, or when responding in an environment that requires unadorned text.
3