Skip to content

Docs/zh cn prune command#818

Merged
affaan-m merged 9 commits into
affaan-m:mainfrom
694344851:docs/zh-cn-prune-command
Mar 29, 2026
Merged

Docs/zh cn prune command#818
affaan-m merged 9 commits into
affaan-m:mainfrom
694344851:docs/zh-cn-prune-command

Conversation

@694344851

@694344851 694344851 commented Mar 23, 2026

Copy link
Copy Markdown
Contributor

What Changed

Added the missing Simplified Chinese translation for the prune command documentation in docs/zh-CN/commands/prune.md.

Why This Change

The zh-CN documentation was complete except for this single file. Adding this ensures consistency across the translated documentation set and helps Chinese-speaking users understand the prune command.

Testing Done

  • Manual testing completed
  • Automated tests pass locally (node tests/run-all.js)
  • Edge cases considered and tested

Type of Change

  • fix: Bug fix
  • feat: New feature
  • refactor: Code refactoring
  • docs: Documentation
  • test: Tests
  • chore: Maintenance/tooling
  • ci: CI/CD changes

Security & Quality Checklist

  • No secrets or API keys committed (ghp_, sk-, AKIA, xoxb, xoxp patterns checked)
  • JSON files validate cleanly
  • Shell scripts pass shellcheck (if applicable)
  • Pre-commit hooks pass locally (if configured)
  • No sensitive data exposed in logs or output
  • Follows conventional commits format

Documentation

  • Updated relevant documentation
  • Added comments for complex logic
  • README updated (if needed)

Summary by cubic

Added Simplified Chinese docs for the prune command and corrected the frontmatter (name: prune, description, command: true) so the page renders correctly as a command.
Covers the default 30‑day cleanup of never‑promoted pending instincts, shows CLI paths using CLAUDE_PLUGIN_ROOT or manual install, and includes examples for /prune, --max-age, and --dry-run.

Written for commit 1e3572b. Summary will update on new commits.

Summary by CodeRabbit

  • Documentation
    • Added Simplified Chinese documentation for the prune command, covering purpose, behavior, and usage examples.
    • Describes default behavior (removes pending items older than 30 days that were never boosted), execution guidance for running the command, and available flags such as --max-age and --dry-run.

@coderabbitai

coderabbitai Bot commented Mar 23, 2026

Copy link
Copy Markdown
Contributor

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: deb68201-56d5-47f7-92ff-71e5a08f5408

📥 Commits

Reviewing files that changed from the base of the PR and between 6af7ca1 and 1e3572b.

📒 Files selected for processing (1)
  • docs/zh-CN/commands/prune.md

📝 Walkthrough

Walkthrough

Adds a new Simplified Chinese documentation page for the prune command describing behavior (removes pending instinct items >30 days never boosted), invocation (instinct-cli.py prune via CLAUDE_PLUGIN_ROOT or fallback path), and usage examples for --max-age and --dry-run.

Changes

Cohort / File(s) Summary
Chinese Documentation for Prune Command
docs/zh-CN/commands/prune.md
Add Simplified Chinese docs with YAML front-matter (prune, description, command: true); documents cleanup purpose, invocation using CLAUDE_PLUGIN_ROOT or absolute fallback, and examples for default, --max-age, and --dry-run.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

Possibly related PRs

Poem

🐰 我在代码林中轻轻跳,
新文档如萝卜香又俏,
prune 将旧待办悄然扫,
--max-age 与 --dry-run 同道,
小兔记下,欢跃跑。

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title 'Docs/zh cn prune command' directly relates to the changeset, which adds Chinese documentation for the prune command.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 1 file

@greptile-apps

greptile-apps Bot commented Mar 23, 2026

Copy link
Copy Markdown
Contributor

Greptile Summary

This PR adds the missing Simplified Chinese (zh-CN) translation for the prune command at docs/zh-CN/commands/prune.md, completing the zh-CN documentation set. The file is a faithful, well-formed translation of the English source commands/prune.md.

Key observations:

  • Frontmatter is correct: name: prune, a single description field (no duplicate keys), and command: true — all consistent with sibling files like promote.md and instinct-status.md.
  • Terminology is consistent: "instinct" is translated as 本能 throughout the file, matching the established convention across all other zh-CN command docs.
  • Section headings are consistent: ## 实现 and ## 用法 match the headings used in promote.md, instinct-status.md, and instinct-export.md.
  • Code block comments are fully translated: all inline comments in the usage examples use Chinese.
  • All concerns raised in previous review threads have been addressed in the current commit.

Confidence Score: 5/5

Documentation-only change with no code impact; safe to merge.

All previously flagged issues (duplicate frontmatter key, missing name field, untranslated "instinct", inconsistent section heading, untranslated code comments) have been resolved in the current commit. The file is consistent with the rest of the zh-CN documentation set and the English source. No outstanding concerns.

No files require special attention.

Important Files Changed

Filename Overview
docs/zh-CN/commands/prune.md New zh-CN translation of the prune command; frontmatter is correct, terminology is consistent, section headings match other zh-CN docs.

Flowchart

%%{init: {'theme': 'neutral'}}%%
flowchart TD
    A["/prune 命令触发"] --> B{CLAUDE_PLUGIN_ROOT 是否设置?}
    B -- 已设置 --> C["python3 $CLAUDE_PLUGIN_ROOT/…/instinct-cli.py prune"]
    B -- 未设置 --> D["python3 ~/.claude/…/instinct-cli.py prune"]
    C --> E{参数?}
    D --> E
    E -- "--dry-run" --> F["预览待删除本能(不实际删除)"]
    E -- "--max-age N" --> G["删除超过 N 天的本能"]
    E -- 无参数 --> H["删除超过 30 天的本能(默认)"]
Loading

Reviews (4): Last reviewed commit: "fix(docs): correct zh-CN prune frontmatt..." | Re-trigger Greptile

Comment thread docs/zh-CN/commands/prune.md
Comment thread docs/zh-CN/commands/prune.md Outdated
Comment thread docs/zh-CN/commands/prune.md Outdated
Comment thread docs/zh-CN/commands/prune.md Outdated
694344851 and others added 4 commits March 23, 2026 13:53
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
Comment thread docs/zh-CN/commands/prune.md Outdated
Comment thread docs/zh-CN/commands/prune.md
694344851 and others added 2 commits March 23, 2026 13:58
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
@affaan-m

Copy link
Copy Markdown
Owner

thanks for the pr, queued for review.

@affaan-m affaan-m merged commit fc1ea4f into affaan-m:main Mar 29, 2026
2 of 3 checks passed
peiking88 pushed a commit to peiking88/everything-claude-code that referenced this pull request Apr 4, 2026
FrancescoRosciano pushed a commit to FRosciano-Mambo/everything-claude-code that referenced this pull request Jun 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants