topmindspace/topmind-writing-skills / topmind-format
topmind-format
Verified把已有文字排成适合 X 的纯文本,按语义段落空行或紧凑列表呈现,严格保留原文措辞、事实、语序与表达性标点符号。支持短文、段子和多个已有开头的完整稿拼接。改写润色用 topmind-revise,从零写作用 topmind-briefs 或 topmind-viral-posts。
scripts/audit_css.py
View on GitHub#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""CSS 审计:本组技能无 CSS 资产;若未来加入 .css 文件,则做括号配平基础检查。"""
from __future__ import annotations
import sys
from pathlib import Path
try:
sys.stdout.reconfigure(encoding="utf-8", errors="replace")
except Exception:
pass
ROOT = Path(__file__).resolve().parent.parent
NAME = ROOT.name
errors: list[str] = []
def main() -> None:
print(f"[audit_css] {NAME}")
css_files = [p for p in ROOT.rglob("*.css") if ".git" not in p.parts and "dist" not in p.parts]
if not css_files:
print(" ✓ 无 CSS 资产,跳过")
print(f"\n[audit_css] {NAME}: 通过")
return
for css in css_files:
text = css.read_text(encoding="utf-8")
balanced = text.count("{") == text.count("}")
print((" ✓ " if balanced else " ✗ ") + f"{css.name} 括号配平")
if not balanced:
errors.append(css.name)
if errors:
print(f"\n[audit_css] {NAME}: {len(errors)} 项失败")
sys.exit(1)
print(f"\n[audit_css] {NAME}: 全部通过")
if __name__ == "__main__":
main()
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| 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: 198k | Updated | Claude CodeCodex | Verified | Install |
| 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: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| 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: 194k | Updated | Claude CodeCodex | Verified | Install |