Token导航 LogoToken导航

Agent Skill · 研究检索

code-documentation-standards(代码文档标准)

用于辅助文档、README、Markdown、说明文和内容稿件的整理与改写。它适合让 Agent 提炼结构、补齐章节、统一术语、检查链接或把零散材料整理成可读文档。使用时应保留项目已有事实、命令和路径,不要把未确认的信息写成确定结论;涉及对外文案时,还需要控制语气,避免过度营销或夸大能力。

code-documentation-standards 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为需要联网;许可证信息还不明确,第三方扫描已通过,按安装量在研究检索类的 73,675 个 Skill 里排第 70,834。

总安装 198周安装 8GitHub Stars 公开资料未说明下载 62核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:code-documentation-standards(代码文档标准)
来源仓库:https://github.com/findinfinitelabs/chuuk
仓库路径:skills/code-documentation-standards
安装命令:
npx skills add https://github.com/findinfinitelabs/chuuk --skill code-documentation-standards
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/findinfinitelabs/chuuk --skill code-documentation-standards

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

code-documentation-standards 强制文档与代码同步更新,并在提交前验证 Markdown 语法正确性。它要求修复所有 markdown 错误(如未闭合代码块、无效链接),确保文档可读性。适用于重视文档质量的工程,自动拦截格式问题防止低质提交进入主干分支。

使用前需配置 pre-commit hook 或 CI 检查机制,否则无法自动触发验证流程。适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

来源仓库内路径:skills/code-documentation-standards

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/findinfinitelabs/chuuk --skill code-documentat…;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要需要联网,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

code-documentation-standards 怎么安装?

在终端执行 npx skills add https://github.com/findinfinitelabs/chuuk --skill code-documentation-standa…。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

code-documentation-standards 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

code-documentation-standards 需要什么权限?

权限级别是需要联网。该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

code-documentation-standards 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

code-documentation-standards 用的人多吗?

公开数据是累计安装 198 次,近一周安装 8 次,下载 62 次。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

code-documentation-standards 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 第三方扫描已通过,常见的高风险行为没有命中。

先想清楚的地方

  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。

不太适合

  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

研究检索类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
find-skills

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
code-documentation-standards

代码文档标准 · 本页

198—需要联网未明确通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Code Documentation Standards

Core Principle

ALWAYS maintain up-to-date documentation when creating or modifying code. Documentation must be updated simultaneously with code changes. ALWAYS fix markdown validation errors promptly before committing any changes.

Pre-Commit Markdown Validation

Before any commit, ALWAYS:

  1. Run markdown validation on all.md files in the repository
  2. Fix all markdown syntax errors including:

- Unclosed code blocks - Missing link destinations - Invalid heading structures - Broken table formatting - Incorrect list indentation

  1. Validate code block syntax in documentation
  2. Check internal links are properly formatted
  3. Ensure consistent formatting across all markdown files

Documentation Requirements

1. Python Functions/Classes

def process_document(file_path: str, patterns: List[str]) -> ProcessResult:
    """
    Process a document for redaction using specified patterns.

    Args:
        file_path (str): Path to the document file to process
        patterns (List[str]): List of redaction patterns to apply

    Returns:
        ProcessResult: Object containing processed document and metadata

    Raises:
        FileNotFoundError: If the specified file doesn't exist
        ValidationError: If patterns are invalid

    Example:
        >>> result = process_document('doc.pdf', ['ssn', 'email'])
        >>> print(result.redacted_count)
    """
    pass

2. Class Documentation

class DocumentProcessor:
    """
    Handles document processing operations for various file formats.

    This class provides methods for parsing, analyzing, and transforming
    documents while maintaining original formatting and metadata.

    Attributes:
        supported_formats (List[str]): File formats supported by processor
        max_file_size (int): Maximum file size in bytes

    Example:
        >>> processor = DocumentProcessor()
        >>> result = processor.process('document.pdf')
    """

    def __init__(self, config: ProcessingConfig = None):
        """Initialize processor with optional configuration."""
        pass

3. Template Documentation

<!--
Template: translation_interface.html
Purpose: Main interface for Chuukese-English translation
Variables:
  - dictionary_entries: List of recent dictionary entries
  - user_translations: User's translation history
  - cultural_context: Cultural context data for assistance
Dependencies:
  - static/css/translation.css
  - static/js/translation-ui.js
  - Bootstrap 5.1+
-->
<div class="translation-container">
    <!-- Translation form content -->
</div>

4. CSS Class Documentation

/*
 * Chuukese Text Display
 * Purpose: Styles for displaying Chuukese text with proper accent handling
 * Usage: Apply to containers holding Chuukese language content
 * Dependencies: Requires font-family supporting Unicode accents
 */
.chuukese-text {
    font-family: 'Noto Sans', 'Arial Unicode MS', sans-serif;
    font-size: 1.1em;
    line-height: 1.5;
    direction: ltr;
}

/*
 * Responsive adaptation: Increase font size on mobile
 * Context: Better readability for accented characters
 */
@media (max-width: 768px) {
    .chuukese-text {
        font-size: 1.2em;
    }
}

5. JavaScript Function Documentation

/**
 * Normalize Chuukese text for search operations
 * @param {string} text - The Chuukese text to normalize
 * @param {boolean} preserveAccents - Whether to preserve accent marks
 * @returns {string} Normalized text suitable for searching
 * @throws {TypeError} If text is not a string
 *
 * @example
 * const normalized = normalizeChuukeseText('kápás', false);
 * console.log(normalized); // 'kapas'
 */
function normalizeChuukeseText(text, preserveAccents = true) {
    if (typeof text !== 'string') {
        throw new TypeError('Text parameter must be a string');
    }
    // Implementation...
}

Documentation Standards by Context

Database Models

class DictionaryEntry(Base):
    """
    Represents a Chuukese-English dictionary entry.

    This model stores bilingual dictionary data with cultural context,
    pronunciation guides, and usage information for language learning
    and translation applications.

    Attributes:
        chuukese_word (str): Primary Chuukese term (required)
        english_definition (str): English definition or translation
        pronunciation (str): IPA or phonetic pronunciation guide
        cultural_context (str): Cultural significance and usage notes
        part_of_speech (str): Grammatical category (noun, verb, etc.)
        difficulty_level (str): Learning difficulty (beginner/intermediate/advanced)
        usage_frequency (float): Frequency score 0.0-1.0

    Relationships:
        phrases: Related phrase entries using this word
        translations: Translation pairs containing this entry

    Example:
        >>> entry = DictionaryEntry(
        ...     chuukese_word="chomong",
        ...     english_definition="to help, assist",
        ...     cultural_context="Community cooperation value"
        ... )
    """
    __tablename__ = 'dictionary_entries'

    id = Column(Integer, primary_key=True)
    chuukese_word = Column(String(200), nullable=False, index=True)
    # ... rest of model

API Routes

@app.route('/api/translate', methods=['POST'])
def translate_text():
    """
    Translate text between Chuukese and English.

    Endpoint for bidirectional text translation with quality assessment
    and cultural context preservation.

    Request Body:
        {
            "text": "string - Text to translate (required)",
            "source_language": "string - Source language code (required)",
            "target_language": "string - Target language code (required)",
            "include_cultural_context": "boolean - Include cultural notes
                                        (optional, default: false)"
        }

    Response:
        {
            "translated_text": "string - Translated result",
            "quality_score": "float - Translation quality 0.0-1.0",
            "cultural_notes": "array - Cultural context information (if requested)",
            "confidence": "float - Translation confidence score"
        }

    Status Codes:
        200: Translation successful
        400: Invalid request parameters
        422: Translation quality too low
        500: Internal server error

    Example:
        >>> POST /api/translate
        >>> {
        ...     "text": "chomong",
        ...     "source_language": "chuukese",
        ...     "target_language": "english"
        ... }

        Response:
        {
            "translated_text": "to help",
            "quality_score": 0.95,
            "confidence": 0.98
        }
    """
    pass

Best Practices

1. Consistency Standards

  • Use consistent parameter naming across similar functions
  • Maintain uniform documentation formatting
  • Follow established patterns for each language/framework
  • Update documentation immediately when code changes
  • Fix all markdown validation errors before committing

2. Content Guidelines

  • Write for developers who don't know the codebase
  • Include practical examples whenever possible
  • Document edge cases and error conditions
  • Explain the "why" behind implementation decisions

3. Cultural Context Documentation (Chuukese Project Specific)

  • Document cultural significance of Chuukese terms
  • Explain traditional concepts that may not translate directly
  • Note appropriate usage contexts (formal/informal, traditional/modern)
  • Include pronunciation guides for language learners

4. Maintenance Requirements

  • Review documentation during code reviews
  • Update documentation in the same commit as code changes
  • Mark deprecated functions with alternatives
  • Remove documentation for deleted code
  • Validate markdown syntax before each commit

5. Quality Checks

  • Verify all parameters are documented
  • Ensure examples are current and functional
  • Check that return types match actual implementation
  • Validate that error conditions are accurately described
  • Run markdown linting tools on all documentation

6. Markdown Validation Process

MANDATORY before every commit:

  1. Syntax Validation: # Check for markdown syntax errors markdownlint **/*.md
  2. Code Block Validation:

- Ensure all code blocks have proper opening/closing backticks - Verify language tags are correct (python, javascript, html, css) - Test that code examples are syntactically valid

  1. Link Validation:

- Check all internal links reference existing files/sections - Verify external links are accessible - Ensure proper markdown link syntax: [text](url)

  1. Structure Validation:

- Confirm heading hierarchy is logical (h1 → h2 → h3) - Verify lists have consistent indentation - Check table formatting is complete

  1. Common Fixes:

- Close unclosed code blocks with proper backticks - Fix malformed tables with proper pipe alignment - Correct broken link references - Standardize heading styles (#, ##, ###) - Fix list item indentation and nesting

Templates

Function Documentation Template

def function_name(param1: Type1, param2: Type2 = default) -> ReturnType:
    """
    Brief description of what the function does.

    Longer description if needed, explaining the purpose and any
    important implementation details or assumptions.

    Args:
        param1 (Type1): Description of first parameter
        param2 (Type2, optional): Description with default value

    Returns:
        ReturnType: Description of return value

    Raises:
        ExceptionType: When this exception occurs

    Example:
        >>> result = function_name(value1, value2)
        >>> print(result)

    Note:
        Any special considerations or warnings
    """

Class Documentation Template

class ClassName:
    """
    Brief description of the class purpose.

    Detailed explanation of what the class represents,
    its main responsibilities, and how it fits into
    the larger system.

    Attributes:
        attr_name (Type): Description of attribute

    Example:
        >>> instance = ClassName(param)
        >>> result = instance.method()

    See Also:
        RelatedClass: For related functionality
    """

Dependencies

  • Follow project-specific documentation tools
  • Use type hints for Python functions
  • Include JSDoc for JavaScript when applicable
  • Maintain README files for project overviews

Validation Criteria

Proper documentation should:

  • ✅ Explain the purpose clearly and concisely
  • ✅ Document all parameters and return values
  • ✅ Include practical usage examples
  • ✅ Note error conditions and exceptions
  • ✅ Use consistent formatting and style
  • ✅ Stay current with code changes
  • ✅ Provide cultural context for Chuukese-specific terms
  • ✅ Pass markdown validation without errors
  • ✅ Have properly formatted code blocks and links
  • ✅ Use consistent heading structure and list formatting

Pre-Commit Workflow

MANDATORY checklist before every commit:

  1. ✅ Code documentation updated
  2. ✅ Markdown files validated and errors fixed
  3. ✅ Code blocks properly formatted with language tags
  4. ✅ All links functional and properly formatted
  5. ✅ Heading hierarchy follows logical structure
  6. ✅ Examples tested and verified working

Tools for validation:

  • markdownlint for syntax checking
  • VS Code markdown preview for visual verification
  • Link checkers for external references
  • Code syntax validators for embedded examples

平台分布

Codex

36.52%
按下载量换算23

Claude

29.97%
按下载量换算19

Cursor

16.99%
按下载量换算11

Gemini CLI

9.79%
按下载量换算6

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills