gravitino-docs-refine
暂无简介
- License 许可
- Apache-2.0
- 所属仓库
- apache/gravitino
- 最近更新
- 2026-11-11
- Stars
- ★ 3.4k
- Forks
- 989
02 资源文件 67
- 许可证LICENSE.txt1.4 KB
- 参考文档README.md2.9 KB
- 脚本scripts/__init__.py1 B
- 脚本scripts/accept_changes.py4.0 KB
- 脚本scripts/check_links.py7.4 KB
- 脚本scripts/comment.py10.4 KB
- 脚本scripts/heading_audit.py3.3 KB
- 脚本scripts/heading_spacing_audit.py2.7 KB
- 脚本scripts/intro_audit.py3.1 KB
- 脚本scripts/office/helpers/__init__.py—
- 脚本scripts/office/helpers/merge_runs.py5.4 KB
- 脚本scripts/office/helpers/simplify_redlines.py5.6 KB
- 脚本scripts/office/pack.py4.9 KB
- 脚本scripts/office/schemas/ecma/fouth-edition/opc-contentTypes.xsd1.9 KB
- 脚本scripts/office/schemas/ecma/fouth-edition/opc-coreProperties.xsd2.5 KB
- 脚本scripts/office/schemas/ecma/fouth-edition/opc-digSig.xsd2.8 KB
- 脚本scripts/office/schemas/ecma/fouth-edition/opc-relationships.xsd1.3 KB
- 脚本scripts/office/schemas/ISO-IEC29500-4_2016/dml-chart.xsd73.2 KB
- 脚本scripts/office/schemas/ISO-IEC29500-4_2016/dml-chartDrawing.xsd6.8 KB
- 脚本scripts/office/schemas/ISO-IEC29500-4_2016/dml-diagram.xsd50.1 KB
- 脚本scripts/office/schemas/ISO-IEC29500-4_2016/dml-lockedCanvas.xsd624 B
- 脚本scripts/office/schemas/ISO-IEC29500-4_2016/dml-main.xsd148.5 KB
- 脚本scripts/office/schemas/ISO-IEC29500-4_2016/dml-picture.xsd1.2 KB
- 脚本scripts/office/schemas/ISO-IEC29500-4_2016/dml-spreadsheetDrawing.xsd8.7 KB
- 脚本scripts/office/schemas/ISO-IEC29500-4_2016/dml-wordprocessingDrawing.xsd14.4 KB
- 脚本scripts/office/schemas/ISO-IEC29500-4_2016/pml.xsd81.7 KB
- 脚本scripts/office/schemas/ISO-IEC29500-4_2016/shared-additionalCharacteristics.xsd1.2 KB
- 脚本scripts/office/schemas/ISO-IEC29500-4_2016/shared-bibliography.xsd7.2 KB
- 脚本scripts/office/schemas/ISO-IEC29500-4_2016/shared-commonSimpleTypes.xsd6.2 KB
- 脚本scripts/office/schemas/ISO-IEC29500-4_2016/shared-customXmlDataProperties.xsd1.2 KB
- 脚本scripts/office/schemas/ISO-IEC29500-4_2016/shared-customXmlSchemaProperties.xsd880 B
- 脚本scripts/office/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesCustom.xsd2.5 KB
- 脚本scripts/office/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesExtended.xsd3.4 KB
- 脚本scripts/office/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesVariantTypes.xsd7.3 KB
- 脚本scripts/office/schemas/ISO-IEC29500-4_2016/shared-math.xsd22.8 KB
- 脚本scripts/office/schemas/ISO-IEC29500-4_2016/shared-relationshipReference.xsd1.3 KB
- 脚本scripts/office/schemas/ISO-IEC29500-4_2016/sml.xsd236.6 KB
- 脚本scripts/office/schemas/ISO-IEC29500-4_2016/vml-main.xsd25.5 KB
- 脚本scripts/office/schemas/ISO-IEC29500-4_2016/vml-officeDrawing.xsd24.7 KB
- 脚本scripts/office/schemas/ISO-IEC29500-4_2016/vml-presentationDrawing.xsd535 B
- 脚本scripts/office/schemas/ISO-IEC29500-4_2016/vml-spreadsheetDrawing.xsd5.6 KB
- 脚本scripts/office/schemas/ISO-IEC29500-4_2016/vml-wordprocessingDrawing.xsd3.9 KB
- 脚本scripts/office/schemas/ISO-IEC29500-4_2016/wml.xsd167.4 KB
- 脚本scripts/office/schemas/ISO-IEC29500-4_2016/xml.xsd4.5 KB
- 脚本scripts/office/schemas/mce/mc.xsd3.1 KB
- 脚本scripts/office/schemas/microsoft/wml-2010.xsd25.9 KB
- 脚本scripts/office/schemas/microsoft/wml-2012.xsd3.7 KB
- 脚本scripts/office/schemas/microsoft/wml-2018.xsd901 B
- 脚本scripts/office/schemas/microsoft/wml-cex-2018.xsd1.7 KB
- 脚本scripts/office/schemas/microsoft/wml-cid-2016.xsd1002 B
- 脚本scripts/office/schemas/microsoft/wml-sdtdatahash-2020.xsd600 B
- 脚本scripts/office/schemas/microsoft/wml-symex-2015.xsd745 B
- 脚本scripts/office/soffice.py5.2 KB
- 脚本scripts/office/unpack.py4.0 KB
- 脚本scripts/office/validate.py3.6 KB
- 脚本scripts/office/validators/__init__.py336 B
- 脚本scripts/office/validators/base.py31.9 KB
- 脚本scripts/office/validators/docx.py16.0 KB
- 脚本scripts/office/validators/pptx.py9.6 KB
- 脚本scripts/office/validators/redlining.py8.7 KB
- 脚本scripts/templates/comments.xml2.5 KB
- 脚本scripts/templates/commentsExtended.xml2.5 KB
- 脚本scripts/templates/commentsExtensible.xml2.6 KB
- 脚本scripts/templates/commentsIds.xml2.6 KB
- 脚本scripts/templates/people.xml115 B
- 脚本scripts/title_h2_audit.py2.9 KB
- 参考文档STYLE.md23.4 KB
03 SKILL.md 正文
<!-- Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to You under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. -->
name: gravitino-docs-refine description: Use when refining Gravitino Markdown docs to match STYLE.md and pass docs audit scripts allowed-tools: Bash
Gravitino Docs Style Refinement
Overview
Refine Markdown files under docs/ with focused, reviewable edits that follow STYLE.md.
Always validate with the audit scripts under .claude/skills/gravitino-docs-refine/scripts/ before finishing.
Refinement Workflow
- Read
STYLE.mdand the target file end to end. - Apply focused style and structure edits only.
- Run the audit scripts in the required order.
- Fix issues by file and line number.
- Re-run the full script set until all checks pass.
Audit Scripts (Required)
Run from the repository root.
| Script | What it checks | When to run |
|---|---|---|
.claude/skills/gravitino-docs-refine/scripts/title_h2_audit.py |
First body H2 should not duplicate frontmatter title |
After title or opening-section edits |
.claude/skills/gravitino-docs-refine/scripts/intro_audit.py |
Body content should not appear before the first H2 | After restructuring page openings |
.claude/skills/gravitino-docs-refine/scripts/heading_audit.py |
Heading hierarchy: first heading is H2 and no level jumps (H2 -> H4) |
After heading edits |
.claude/skills/gravitino-docs-refine/scripts/heading_spacing_audit.py |
One blank line before and after each H2-H6 heading |
After formatting sweeps |
.claude/skills/gravitino-docs-refine/scripts/check_links.py |
Internal Markdown links and anchors under docs/ |
Final quality gate before PR |
Script Usage
python3 .claude/skills/gravitino-docs-refine/scripts/title_h2_audit.py
python3 .claude/skills/gravitino-docs-refine/scripts/intro_audit.py
python3 .claude/skills/gravitino-docs-refine/scripts/heading_audit.py
python3 .claude/skills/gravitino-docs-refine/scripts/heading_spacing_audit.py
python3 .claude/skills/gravitino-docs-refine/scripts/check_links.py docs/
Run as a single gate when finishing:
python3 .claude/skills/gravitino-docs-refine/scripts/title_h2_audit.py \
&& python3 .claude/skills/gravitino-docs-refine/scripts/intro_audit.py \
&& python3 .claude/skills/gravitino-docs-refine/scripts/heading_audit.py \
&& python3 .claude/skills/gravitino-docs-refine/scripts/heading_spacing_audit.py \
&& python3 .claude/skills/gravitino-docs-refine/scripts/check_links.py docs/
Completion Criteria
- Target docs comply with
STYLE.md. - All five scripts exit with code
0. - No unrelated files are changed.