oceanbase-formatting
9
总安装量
4
周安装量
#32257
全站排名
安装命令
npx skills add https://github.com/amber-moe/oceanbase-doc-skills --skill oceanbase-formatting
Agent 安装分布
claude-code
3
trae
2
opencode
2
kilo
1
windsurf
1
Skill 文档
OceanBase Documentation Formatting
This skill ensures all OceanBase documentation follows consistent formatting standards and markdown lint rules.
Meta information format
Always use table format, NOT YAML frontmatter:
| Description | |
|---|---|
| description | ææ¡£çå 容æè¿°ã注æï¼å¥å°¾éè¦ç»ä¸å å¥å·ã |
| keywords | å ³é®è¯ï¼å¤ä¸ªå ³é®è¯ä¹é´ç¨è±æéå·éå¼ |
| dir-name | è¿éå¡«å叿å¨å½å ç«ææ¡£ä¸å¿ç®å½ä¸å±ç¤ºçåç§° |
| dir-name-en | è¿éå¡«å叿卿µ·å¤ç«ææ¡£ä¸å¿ç®å½ä¸å±ç¤ºçåç§° |
| tenant-type | MySQL Mode æ Oracle Modeï¼ä¸¤ç§æ¨¡å¼åéç¨åä¸å¡«åï¼ |
| ddl-type | Online DDL æ Offline DDLï¼ä» éç¨äºå æ ¸ SQL è¯å¥ç¸å ³ææ¡£ï¼ |
| machine-translation | æ è¯æºå¨ç¿»è¯çææ¡£ï¼å¦æï¼ |
Important:
- Default: Only fill description and keywords
- Fill tenant-type only when document applies to specific mode
- Do NOT delete machine-translation field if present
- All descriptions must end with period (å¥å·)
Notice boxes
说æ (Explain) – For explanations
Use for explaining complex concepts, providing background, or detailed clarifications:
注æ (Notice) – For warnings
Use for warnings, limitations, or important alerts:
Formatting:
- Use single quotes for
typeattribute:type='explain'ortype='notice' - Use
<h4>for heading - Use
<p>for content - Use
<code>for inline code - Use
<strong>for emphasis
Spacing rules
Follow these spacing requirements:
- Title and body: Space between title and body text
- Body and code blocks: Space between body text and code blocks
- Body and tables: Space between body text and tables
- Sections: Space between major sections
Example:
## Syntax
```sql
ALTER SYSTEM KILL SESSION 'session_id';
Parameters
## Markdown lint compliance
- Use proper heading hierarchy (#, ##, ###)
- Code blocks must specify language: ```sql, ```json, etc.
- Tables should have proper alignment
- Lists should use consistent formatting
- No trailing whitespace
- Proper line breaks
## Video cards
For video content:
<div role="videolist">
<a role='video' data-code='å¨ boss åå°è·åè§é¢ç code' href='è§é¢å°å'>
<img src='徿 å°å'/>
å¡«åéè¦å¨å¡çéå±ç¤ºçææ¡
</a>
<a role='link' href='龿¥å°å'>
<img src='徿 å°å'/>
å¡«åéè¦å¨å¡çéå±ç¤ºçææ¡
</a>
</div>
## Download cards
For download links:
<div role="videolist">
<a role='link' href='龿¥å°å'>
<img src='徿 å°å'/>
å¡«åéè¦å¨å¡çéå±ç¤ºçææ¡
</a>
</div>
**Download icon URL:**
```text
https://obbusiness-private.oss-cn-shanghai.aliyuncs.com/doc/img/download.png
Notes:
- Use
role='link'for direct file downloads - Each
<a>tag represents one card - Use the provided download icon URL for download cards
Code block formatting
For existing code (code references)
Use this format when referencing existing code:
startLine:endLine:filepath
// code content here
Requirements:
- Include startLine and endLine (required)
- Include full filepath (required)
- Include at least 1 line of actual code
- Do NOT add language tags
- Do NOT indent triple backticks
For new code (markdown code blocks)
Use standard markdown with language tag:
ALTER SYSTEM KILL SESSION 'session_id';
Requirements:
- Always specify language
- No line numbers
- Do NOT indent triple backticks
Table formatting
- Include header row
- Use proper alignment
- Keep content concise
- Use code formatting for technical terms in cells
Example:
| Parameter | Description |
|---|---|
| session_id | The Client Session ID of the current session. |
Quality checks
Before finalizing:
- Meta table format (not YAML)
- Notice boxes use correct format
- Proper spacing throughout
- Markdown lint compliant
- Code blocks have language tags
- Tables properly formatted
- No trailing whitespace