Clean Comments
ertugrul-dmr/clean-code-skills
A skill your agent uses when writing, fixing, editing, or reviewing Python comments and docstrings.
Applies Google Style documentation to Python docstrings, Go comments and Terraform descriptions, for writing new docs or reviewing existing ones.
$ npx skills add jjmartres/opencode --skill code-docs -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install jjmartres/opencode code-docs --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/jjmartres/opencode.git skills-src && mkdir -p .claude/skills && cp -r skills-src/opencode/skills/code-docs .claude/skills/code-docs && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "code-docs" agent skill from https://github.com/jjmartres/opencode/tree/main/opencode/skills/code-docs into .claude/skills/code-docs/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "code-docs", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/jjmartres/opencode/tree/main/opencode/skills/code-docsType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add jjmartres/opencode --skill code-docs -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install jjmartres/opencode code-docs --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/jjmartres/opencode.git skills-src && mkdir -p .agents/skills && cp -r skills-src/opencode/skills/code-docs .agents/skills/code-docs && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "code-docs" agent skill from https://github.com/jjmartres/opencode/tree/main/opencode/skills/code-docs into .agents/skills/code-docs/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "code-docs", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add jjmartres/opencode --skill code-docs -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install jjmartres/opencode code-docs --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/jjmartres/opencode.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/opencode/skills/code-docs .cursor/skills/code-docs && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "code-docs" agent skill from https://github.com/jjmartres/opencode/tree/main/opencode/skills/code-docs into .cursor/skills/code-docs/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "code-docs", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/jjmartres/opencode.git --path opencode/skills/code-docs--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add jjmartres/opencode --skill code-docs -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install jjmartres/opencode code-docs --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/jjmartres/opencode.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/opencode/skills/code-docs .gemini/skills/code-docs && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "code-docs" agent skill from https://github.com/jjmartres/opencode/tree/main/opencode/skills/code-docs into .gemini/skills/code-docs/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "code-docs", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install jjmartres/opencode code-docsInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add jjmartres/opencode --skill code-docs -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/jjmartres/opencode.git skills-src && mkdir -p .github/skills && cp -r skills-src/opencode/skills/code-docs .github/skills/code-docs && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "code-docs" agent skill from https://github.com/jjmartres/opencode/tree/main/opencode/skills/code-docs into .github/skills/code-docs/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "code-docs", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add jjmartres/opencode --skill code-docs -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install jjmartres/opencode code-docs --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/jjmartres/opencode.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/opencode/skills/code-docs .opencode/skills/code-docs && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "code-docs" agent skill from https://github.com/jjmartres/opencode/tree/main/opencode/skills/code-docs into .opencode/skills/code-docs/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "code-docs", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
code-docsApplies Google Style documentation to Python docstrings, Go comments and Terraform descriptions, for writing new docs or reviewing existing ones.
The agent detects the language from file extensions and keywords, reads the matching reference file for Python, Go or Terraform, and documents the appropriate elements: modules, classes and functions for Python, package, type and function comments for Go, and variable, output, resource and module descriptions for Terraform.
Five principles guide the work: clarity, completeness for all public APIs with parameters, returns and exceptions, consistency with each language's Google Style conventions, conciseness without redundancy, and usage examples for complex functionality. Before finishing, the agent checks that public APIs are documented, formatting follows the style exactly, and no obvious or redundant text remains.
In review mode, the skill points out missing documentation, suggests improvements to existing text, supplies corrected examples and explains why the documentation matters. It applies when writing new functions, classes or packages, refactoring undocumented code, or when you mention Google Style or ask to document code.
5 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit 28dc323. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
No scripts in the folder and no shell commands in SKILL.md (its code samples are python and go).
From the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Google Style Code Docs loads about 1.9k tokens when it runs, and up to ~14k if it reads all its reference files. Until then it costs about 105 tokens; SKILL.md has 684 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from jjmartres/opencode at commit 28dc323, republished under its MIT licence (© jjmartres). 684 words, ~1,948 tokens.
.claude/skills/code-docs/SKILL.md (or your agent's skills folder). This skill also uses 3 other files; get the full folder from GitHub.Apply Google Style documentation standards to Python (docstrings), Go (comments), and Terraform (descriptions). Ensures consistent, professional, and comprehensive code documentation across multiple languages.
Use this skill when:
Identify the programming language:
.py files, def, class keywords, type hints.go files, func, type, package keywords.tf files, resource, variable, module keywordsRead the corresponding reference file:
references/python_google_style.md for complete docstring standardsreferences/go_google_style.md for complete comment standardsreferences/terraform_style.md for complete description standardsApply documentation to all appropriate code elements:
Python:
Go:
Terraform:
Before finalizing, verify:
When reviewing code:
Always Document:
__init__ methods (explain parameters)Consider Documenting:
Don't Document:
Always Document:
Consider Documenting:
Don't Document:
Always Document:
Consider Documenting:
Don't Document:
When using type hints, docstrings can be more concise:
def add(a: int, b: int) -> int:
"""Add two integers.
Args:
a: First integer.
b: Second integer.
Returns:
The sum of a and b.
"""
return a + bType information is already in the signature, so Args and Returns can be brief.
Always document what errors a function can return:
// ReadConfig reads and parses the configuration file.
//
// Returns an error if the file cannot be read or contains invalid YAML.
func ReadConfig(path string) (*Config, error) {
// implementation
}For complex logic, add inline comments AND comprehensive function documentation:
def dijkstra(graph: Graph, start: Node) -> dict[Node, float]:
"""Find shortest paths using Dijkstra's algorithm.
Implements Dijkstra's single-source shortest path algorithm
using a priority queue for O((V + E) log V) complexity.
Args:
graph: Weighted graph with non-negative edge weights.
start: Starting node for path calculations.
Returns:
Dictionary mapping each node to its shortest distance from start.
Unreachable nodes are not included in the result.
Raises:
ValueError: If graph contains negative edge weights.
Example:
>>> graph = Graph()
>>> graph.add_edge("A", "B", 4)
>>> graph.add_edge("A", "C", 2)
>>> distances = dijkstra(graph, "A")
>>> distances["B"]
4
"""
# Implementation with inline comments for complex partsWhen adding documentation to code:
Complete Terraform documentation standard with:
Complete Python docstring standard with:
Complete Go comment standard with:
All code documentation must:
© jjmartres, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 3 other files (references) in opencode/skills/code-docs of jjmartres/opencode.
Open the folder on GitHubat commit 28dc323
Google Style Code Docs next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Google Style Code Docs this skilljjmartres/opencode | 133 | — | ~1.9k | Automated safety check: Pass | MIT | |
| Clean Commentsertugrul-dmr/clean-code-skills | 195 | — | ~422 | Automated safety check: Pass | MIT | |
| Kitaru Docszenml-io/kitaru | 300 | — | ~936 | Automated safety check: Pass | Apache-2.0 | |
| Flowfile Config and Flags CatalogEdwardvaneechoud/Flowfile | 370 | — | ~12k | Automated safety check: Notes | MIT | |
| Genie API Service Docsqualcomm/qai-appbuilder | 246 | — | ~840 | Automated safety check: Pass | Custom licence | |
| Draw.io Diagram StudioAgents365-ai/drawio-skill | 10k | — | ~2.4k | Automated safety check: Notes | MIT |
ertugrul-dmr/clean-code-skills
A skill your agent uses when writing, fixing, editing, or reviewing Python comments and docstrings.
zenml-io/kitaru
Kitaru documentation surfaces, link rules, and accuracy rules.
Edwardvaneechoud/Flowfile
Catalog of Flowfile's environment variables and runtime flags: what each does, where the code reads it, its default, and where the docs disagree with the code.
qualcomm/qai-appbuilder
GenieAPIService technical documentation retrieval. An agent skill from qualcomm/qai-appbuilder.
Agents365-ai/drawio-skill
Creates and edits editable draw.io diagrams from descriptions, code, infrastructure files, SQL and API schemas, with sync, review, test and export tools.
docling-project/docling
Applies opinionated production Python conventions chosen by the project's Python version: modern type syntax, pathlib, explicit checks and interface guidance.
jjmartres/opencode
Helps an agent pick the right Mermaid diagram type and write the syntax for class, sequence, flow, ER, C4, state and other software diagrams.
jjmartres/opencode
Builds Marp slide decks in one of seven ready-made themes, using bundled templates plus syntax, image and style references to keep slides short and readable.
jjmartres/opencode
Lets an agent view, create, update and transition Jira issues in natural language, automatically choosing between the jira CLI and Atlassian MCP tools.
jjmartres/opencode
Guides use of Worktrunk (wt), a CLI that makes git worktrees as easy as branches so several AI agents can work in parallel on isolated branches.
jjmartres/opencode
A skill your agent uses when writing prose humans will read—documentation, commit messages, error messages, explanations, reports, or UI text.
jjmartres/opencode
A skill your agent uses whenever the user wants to install, configure, or use asdf (asdf-vm), the universal version manager.
Categories
Applies Google Style documentation to Python docstrings, Go comments and Terraform descriptions, for writing new docs or reviewing existing ones. The agent detects the language from file extensions and keywords, reads the matching reference file for Python, Go or Terraform, and documents the appropriate elements: modules, classes and functions for Python, package, type and function comments for Go, and variable, output, resource and module descriptions for Terraform.
Google Style Code Docs fits situations like: adding docstrings to Python modules and classes; writing Go package, type and function comments; reviewing Terraform variable and output descriptions.
Run `npx skills add jjmartres/opencode --skill code-docs -a claude-code`. Or copy the skill folder (opencode/skills/code-docs in jjmartres/opencode) into .claude/skills/code-docs in your project. Claude Code loads it when a task matches its description.
Run `npx skills add jjmartres/opencode --skill code-docs -a codex`. Or copy the skill folder (opencode/skills/code-docs in jjmartres/opencode) into .agents/skills/code-docs in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add jjmartres/opencode --skill code-docs -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/code-docs, .gemini/skills/code-docs, .github/skills/code-docs and .opencode/skills/code-docs in your project.
SKILL.md names no scripts, command-line tools or credentials: Google Style Code Docs is instructions for the agent only.
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Google Style Code Docs is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 1.9k tokens (SKILL.md is roughly 7.8k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 12k tokens, read only when the agent opens those files.
Skills that share tags, products or a category with Google Style Code Docs: Clean Comments (ertugrul-dmr/clean-code-skills, 195 stars), Kitaru Docs (zenml-io/kitaru, 300 stars), Flowfile Config and Flags Catalog (Edwardvaneechoud/Flowfile, 370 stars) and Genie API Service Docs (qualcomm/qai-appbuilder, 246 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
jjmartres (a GitHub user) maintains it in jjmartres/opencode, which has 133 GitHub stars. The repository holds 11 skills in this directory. The repository was last updated on April 20, 2026.
Source: jjmartres/opencode on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.