Skip to content

docs(zh-CN): fix missing newline before origin in prompt-optimizer skill#855

Merged
affaan-m merged 1 commit into
affaan-m:mainfrom
Yumerain:fix/zh-cn-doc-format
Mar 29, 2026
Merged

docs(zh-CN): fix missing newline before origin in prompt-optimizer skill#855
affaan-m merged 1 commit into
affaan-m:mainfrom
Yumerain:fix/zh-cn-doc-format

Conversation

@Yumerain

@Yumerain Yumerain commented Mar 24, 2026

Copy link
Copy Markdown

Summary

Fix a formatting issue in the zh-CN translation of the prompt-optimizer skill where origin: community was missing a newline.

Type

  • Skill
  • Agent
  • Hook
  • Command
  • Docs

Testing

Verified visually in markdown preview.

Checklist

  • Follows format guidelines
  • Tested with Claude Code
  • No sensitive info (API keys, paths)
  • Clear descriptions

Summary by cubic

Fixes YAML front matter in the zh-CN prompt-optimizer skill by adding the missing newline before origin: community. This ensures metadata parses correctly and renders as expected.

Written for commit e3510f6. Summary will update on new commits.

Summary by CodeRabbit

Documentation

  • Reorganized documentation metadata structure for improved clarity and consistency.

@coderabbitai

coderabbitai Bot commented Mar 24, 2026

Copy link
Copy Markdown
Contributor

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 56f68ef4-6f70-4aee-a42a-3552d4e1b8a8

📥 Commits

Reviewing files that changed from the base of the PR and between df4f2df and e3510f6.

📒 Files selected for processing (1)
  • docs/zh-CN/skills/prompt-optimizer/SKILL.md

📝 Walkthrough

Walkthrough

This PR reformats the YAML front-matter metadata in the Prompt Optimizer skill documentation by extracting the origin: community field from an embedded description string into an explicit top-level metadata entry. No functional content changes.

Changes

Cohort / File(s) Summary
Documentation Metadata Restructuring
docs/zh-CN/skills/prompt-optimizer/SKILL.md
Reformatted YAML front-matter to separate origin: community into an explicit top-level metadata field, previously embedded in the description string.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

Possibly related PRs

Suggested reviewers

  • affaan-m

Poem

A rabbit hops through metadata clean, 🐰
Organizing fields with careful keen,
Origin now stands alone and bright,
Front-matter structured just right!

🚥 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 accurately describes the main change: fixing a missing newline before the origin field in the prompt-optimizer skill documentation.
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.

@greptile-apps

greptile-apps Bot commented Mar 24, 2026

Copy link
Copy Markdown
Contributor

Greptile Summary

This PR fixes a one-line YAML front matter formatting bug in the zh-CN translation of the prompt-optimizer skill, where origin: community was concatenated directly onto the end of the description value instead of being placed on its own line.

  • The fix correctly separates origin: community onto its own line, ensuring the YAML parser treats it as a distinct front matter field rather than as trailing text in the description string.
  • The corrected structure now matches the canonical English source file (skills/prompt-optimizer/SKILL.md), which uses origin: community as its own top-level front matter key.
  • No logic, behavior, or content changes — purely a formatting correction.

Confidence Score: 5/5

  • This PR is safe to merge — it is a single-line documentation formatting fix with no behavioral changes.
  • The change is minimal (one newline added), clearly correct when compared against the English source file, and carries zero risk of introducing regressions.
  • No files require special attention.

Important Files Changed

Filename Overview
docs/zh-CN/skills/prompt-optimizer/SKILL.md Adds a missing newline before origin: community in the YAML front matter so it is parsed as a distinct field rather than as part of the description string value.

Flowchart

%%{init: {'theme': 'neutral'}}%%
flowchart TD
    A["YAML Front Matter Parser reads SKILL.md"] --> B{"Is 'origin: community'\non its own line?"}
    B -- "Before fix (No)" --> C["'origin: community' appended\nto description string value"]
    C --> D["'origin' field is missing\nfrom parsed metadata"]
    D --> E["❌ Skill metadata incomplete"]
    B -- "After fix (Yes)" --> F["description ends\nat correct position"]
    F --> G["'origin: community' parsed\nas a separate YAML field"]
    G --> H["✅ Skill metadata complete\nand correctly structured"]
Loading

Reviews (1): Last reviewed commit: "docs(zh-CN): fix missing newline before ..." | Re-trigger Greptile

@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


Since this is your first cubic review, here's how it works:

  • cubic automatically reviews your code and comments on bugs and improvements
  • Teach cubic by replying to its comments. cubic learns from your replies and gets better over time
  • Add one-off context when rerunning by tagging @cubic-dev-ai with guidance or docs links (including llms.txt)
  • Ask questions if you need clarification on any suggestion

@affaan-m affaan-m merged commit 1e43639 into affaan-m:main Mar 29, 2026
4 checks passed
@Yumerain Yumerain deleted the fix/zh-cn-doc-format branch March 30, 2026 06:56
peiking88 pushed a commit to peiking88/everything-claude-code that referenced this pull request Apr 4, 2026
docs(zh-CN): fix missing newline before origin in prompt-optimizer skill
FrancescoRosciano pushed a commit to FRosciano-Mambo/everything-claude-code that referenced this pull request Jun 1, 2026
docs(zh-CN): fix missing newline before origin in prompt-optimizer skill
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