Skip to content

dongzhigang13305312738-art/paper-skills / complete-example

complete-example

Verified

当用户明确要求"填充示例内容""生成示例""补充 LaTeX 示例"时使用。AI 增强版 LaTeX 示例智能生成器,实现 AI 与硬编码的有机融合:AI 做"语义理解"(分析章节主题、推理资源相关性、生成连贯叙述),硬编码做"结构保护"(格式验证、哈希校验、访问控制)。

scripts/basic_usage.py

View on GitHub
"""
Complete Example Skill - 基本使用示例
"""

import sys
from pathlib import Path

# 添加 skill 目录到路径
skill_root = Path(__file__).parent.parent
sys.path.insert(0, str(skill_root))

from scripts.skill_controller import CompleteExampleSkill


def main():
    """基本使用示例"""

    # 1. 加载配置
    import yaml
    config_path = skill_root / "config.yaml"

    with open(config_path, 'r', encoding='utf-8') as f:
        config = yaml.safe_load(f)

    config['skill_root'] = str(skill_root)

    # 2. 创建 skill 实例
    skill = CompleteExampleSkill(config)

    # 3. 执行(基本使用,AI 自动推断)
    result = skill.execute(
        project_name="NSFC_Young",
        options={
            "content_density": "moderate",
            "output_mode": "preview",
            "target_files": ["extraTex/2.1.研究内容.tex"]
        }
    )

    # 4. 查看结果
    print(f"执行状态:{result['final_result']}")
    print(f"运行 ID:{result['run_id']}")
    print(f"运行目录:{result['run_dir']}")

    if result['final_result'] == 'success':
        print("\n各阶段状态:")
        for stage_name, stage_data in result['stages'].items():
            print(f"  - {stage_name}: {stage_data['status']}")


if __name__ == "__main__":
    main()
slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack."Stars: 198kUpdated Claude CodeCodexVerifiedInstall
ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read.Stars: 194kUpdated Claude CodeCodexVerifiedInstall
ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report.Stars: 194kUpdated Claude CodeCodexVerifiedInstall
ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt.Stars: 194kUpdated Claude CodeCodexVerifiedInstall