INNER CODE UNIT · Python

generate_index

wgpsec/AboutSecurity · scripts/generate-index.py:108

def generate_index(output_path: Path = None, stats_only: bool = False) -> dict:
    """生成完整索引"""
    skills = []
    categories = {}

    # 遍历所有 SKILL.md
    for skill_file in sorted(SKILLS_DIR.rglob("SKILL.md")):
        # 跳过 .claude/ 等隐藏目录
        if any(part.startswith(".") for part in skill_file.parts):
            continue

        try:
            info = extract_skill_info(skill_file)
            skills.append(info)

            # 分类统计
            cat = info["category"]
            if cat not in categories:

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…