Agent skill

Preserve Comments

by zkldi in zkldi/Tachi

Preserves existing code comments (line, block, JSDoc, region markers) when editing files; does not delete or collapse comments for brevity unless the user asked to remove or update them.

No licenceAuto-check passedDevelopment

Install Preserve Comments

skills CLI
$ npx skills add zkldi/Tachi --skill preserve-comments -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install zkldi/Tachi preserve-comments --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/zkldi/Tachi.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.cursor/skills/preserve-comments .claude/skills/preserve-comments && rm -rf skills-src

Use ~/.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/

Facts

Skill name
preserve-comments
GitHub stars
238
Token cost
~399 tokens
SKILL.md length
191 words
Files
1
Skills in repo
5
Repo updated
First seen
Licence
None found

At a glance

Preserves existing code comments (line, block, JSDoc, region markers) when editing files; does not delete or collapse comments for brevity unless the user asked to remove or update them.

  • Editing any source file
  • SKILL.md covers Default rule, When removal or heavy edits… and What this is not
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md
  • Applying fixes where comments already exist

What it does

Preserve Comments is an agent skill from zkldi/Tachi. Preserves existing code comments (line, block, JSDoc, region markers) when editing files; does not delete or collapse comments for brevity unless the user asked to remove or update them. Use when editing any source file, refactoring, or applying fixes where comments already exist.

Its SKILL.md is about 400 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Development, covering Technical documentation and Refactoring. The repository describes itself as: A Cutting-Edge, Modular Score Tracker.

When your agent uses it

  • Editing any source file
  • Applying fixes where comments already exist

Example prompts

  • “Use the preserve-comments skill to preserve existing code comments (line, block, JSDoc, region markers) when editing files; does not delete or…”
  • “/preserve-comments”

What it can do on your machine

Read from SKILL.md and the folder at commit e6b34a1. It shows what the files ask for, not the result of running them.

  • Tool permissions

    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.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Preserve Comments loads about 399 tokens when it runs. Until then it costs about 75 tokens; SKILL.md has 191 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~75
When it runs · the whole SKILL.md, loaded when a task matches
~399

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.

Safety

Auto-check passed

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.

SKILL.md

Without a licence we can't republish the file, so here is its outline and opening line. It has 191 words (~399 tokens).

“When changing code, keep existing comments in place unless one of the exceptions below applies.”

— opening of SKILL.md by zkldi
name
preserve-comments

Read the full SKILL.md on GitHub

Files

Just SKILL.md in .cursor/skills/preserve-comments of zkldi/Tachi.

Open the folder on GitHubat commit e6b34a1

Compare with similar skills

Preserve Comments 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.

Preserve Comments compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Preserve Comments this skillzkldi/Tachi238—~399Automated safety check: PassNone
Enforce Rules For Typescriptmoeru-ai/airi50k—~3.4kAutomated safety check: PassMIT
Mas Code StandardsAUTO-MAS-Project/AUTO-MAS710—~2.5kAutomated safety check: PassAGPL-3.0
Python Guidelinesfcakyon/claude-codex-settings1.2k—~1.2kAutomated safety check: PassApache-2.0
Docs Update from DiffQwenLM/qwen-code28k—~1.1kAutomated safety check: PassApache-2.0
Sync CheckItamarZand88/CLI-Anything-WEB231—~1.7kAutomated safety check: PassMIT

Similar skills

  • Enforce AIRI's TypeScript and Vue source rules for imports, naming, comments, JSDoc, fallbacks, stateful and protocol code, and module design.

    50k GitHub stars~3.4k tokensUpdated today
    DevelopmentAuto-check passed
  • Mas Code Standards

    AUTO-MAS-Project/AUTO-MAS

    A skill your agent uses when implementing, fixing, refactoring, or reviewing non-generated AUTO-MAS code, or when preparing code-style guidance, comments, docstrings, version notes, or Conventional…

    710 GitHub stars~2.5k tokensUpdated today
    DevelopmentAuto-check passed
  • Python Guidelines

    fcakyon/claude-codex-settings

    This skill should be used when writing, reviewing, or refactoring Python code.

    1.2k GitHub stars~1.2k tokensUpdated yesterday
    DevelopmentAuto-check passed
  • Docs Update from Diff

    QwenLM/qwen-code

    Reads local git changes and updates only the matching docs pages, so documentation stays in sync with uncommitted or recent code changes.

    28k GitHub stars~1.1k tokensUpdated today
    DevelopmentAuto-check passed
  • Sync Check

    ItamarZand88/CLI-Anything-WEB

    Walks the documentation dependency web after a CLI code change and reports which downstream files (skills, SOPs, READMEs, plugin references) are out of sync.

    231 GitHub stars~1.7k tokensUpdated 8 days ago
    DevelopmentAuto-check passed
  • A skill your agent uses when you need to generate or improve Java project documentation — including README.md files, package-info.java files, and Javadoc enhancements — through a modular, step-based…

    447 GitHub stars~784 tokensUpdated 2 days ago
    DevelopmentAuto-check passed

More from zkldi/Tachi

  • Patterns for writing actions (MakeAction/MakeAnonAction), using the Postgres DB (Kysely), and migrating Express routes from MongoDB to Postgres in the Tachi server.

    238 GitHub stars~2.3k tokensUpdated today
    Auto-check passed
  • Coverage Tools

    zkldi/Tachi

    Aggregates Vitest v8/Istanbul coverage across Tachi workspaces via tachi-coverage-tools (manifest, CLI, optional programmatic API).

    238 GitHub stars~580 tokensUpdated today
    Auto-check passed
  • DB Formats

    zkldi/Tachi

    Guidance on using db-formats/ column lists (SELECT) and document mappers (ToDocument) instead of selectAll() when writing Postgres-backed endpoints in the Tachi server.

    238 GitHub stars~1.3k tokensUpdated today
    Auto-check passed
  • Prefer staticAssertUnreachable in the default branch of switches that must cover every variant of a union, so exhaustiveness is checked at compile time.

    238 GitHub stars~625 tokensUpdated today
    Auto-check passed

Categories

Questions about Preserve Comments

What does Preserve Comments do?

Preserves existing code comments (line, block, JSDoc, region markers) when editing files; does not delete or collapse comments for brevity unless the user asked to remove or update them. Preserve Comments is an agent skill from zkldi/Tachi. Preserves existing code comments (line, block, JSDoc, region markers) when editing files; does not delete or collapse comments for brevity unless the user asked to remove or update them.

When should I use Preserve Comments?

Preserve Comments fits situations like: editing any source file; applying fixes where comments already exist.

How do I install Preserve Comments in Claude Code?

Run `npx skills add zkldi/Tachi --skill preserve-comments -a claude-code`. Or copy the skill folder (.cursor/skills/preserve-comments in zkldi/Tachi) into .claude/skills/preserve-comments in your project. Claude Code loads it when a task matches its description.

How do I install Preserve Comments in Codex?

Run `npx skills add zkldi/Tachi --skill preserve-comments -a codex`. Or copy the skill folder (.cursor/skills/preserve-comments in zkldi/Tachi) into .agents/skills/preserve-comments in your project. Codex loads it when a task matches its description.

Can I use Preserve Comments in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add zkldi/Tachi --skill preserve-comments -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/preserve-comments, .gemini/skills/preserve-comments, .github/skills/preserve-comments and .opencode/skills/preserve-comments in your project.

What does Preserve Comments need to run?

SKILL.md names no scripts, command-line tools or credentials: Preserve Comments is instructions for the agent only.

Does Preserve Comments access the network?

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.

Is Preserve Comments safe to install?

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.

What licence does Preserve Comments use?

No licence was found for Preserve Comments or its repository. Without one, default copyright applies: ask the author before reusing or redistributing it.

How many tokens does Preserve Comments use?

About 399 tokens (SKILL.md is roughly 1.6k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Preserve Comments?

Skills that share tags, products or a category with Preserve Comments: Enforce Rules For Typescript (moeru-ai/airi, 50k stars), Mas Code Standards (AUTO-MAS-Project/AUTO-MAS, 710 stars), Python Guidelines (fcakyon/claude-codex-settings, 1.2k stars) and Docs Update from Diff (QwenLM/qwen-code, 28k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Preserve Comments?

zkldi (a GitHub user) maintains it in zkldi/Tachi, which has 238 GitHub stars. The repository holds 5 skills in this directory. The repository was last updated on October 8, 2026.

Source: zkldi/Tachi on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.