davila7/claude-code-templates / cli-tool/components/skills/creative-design/draw-io
draw-io
Verifieddraw.io diagram creation, editing, and review. Use for .drawio XML editing, PNG conversion, layout adjustment, and AWS icon usage.
| File | Kind | Size |
|---|---|---|
| README.md | markdown | 7.7 KB |
| SKILL.md | skill md | 7.4 KB |
| references/aws-icons.md | markdown | 27.9 KB |
| references/layout-guidelines.md | markdown | 1.5 KB |
| scripts/convert-drawio-to-png.shexecutable | script | 638 B |
| scripts/find_aws_icon.pyexecutable | script | 2.2 KB |
scripts/find_aws_icon.py
View on GitHub#!/usr/bin/env python3
"""AWS アイコン検索スクリプト
references/aws-icons.md からサービス名でアイコン情報を検索する。
トークン効率を向上させるため、必要な情報のみを抽出する。
Usage:
python find_aws_icon.py <service_name>
python find_aws_icon.py ec2
python find_aws_icon.py lambda
python find_aws_icon.py s3
"""
import re
import sys
from pathlib import Path
def load_icon_data() -> dict[str, str]:
"""aws-icons.md からアイコンデータを読み込む"""
icons = {}
script_dir = Path(__file__).parent
aws_icons_path = script_dir.parent / "references" / "aws-icons.md"
if not aws_icons_path.exists():
return icons
content = aws_icons_path.read_text(encoding="utf-8")
# テーブル行からサービス名と resIcon を抽出
# | Amazon EC2 | mxgraph.aws4.ec2 |
pattern = r"\|\s*([^|]+?)\s*\|\s*(mxgraph\.aws4\.[a-z0-9_]+)\s*\|"
for match in re.finditer(pattern, content):
service_name = match.group(1).strip()
res_icon = match.group(2).strip()
icons[service_name.lower()] = {
"name": service_name,
"resIcon": res_icon,
}
return icons
def search_icon(query: str) -> list[dict]:
"""クエリに一致するアイコンを検索"""
icons = load_icon_data()
query_lower = query.lower()
results = []
for key, data in icons.items():
if query_lower in key or query_lower in data["resIcon"]:
results.append(data)
return results
def main():
if len(sys.argv) < 2:
print("Usage: python find_aws_icon.py <service_name>")
print("Example: python find_aws_icon.py ec2")
sys.exit(1)
query = sys.argv[1]
results = search_icon(query)
if not results:
print(f"No icons found for: {query}")
sys.exit(1)
print(f"Found {len(results)} icon(s) for '{query}':\n")
for result in results:
print(f"Service: {result['name']}")
print(f"resIcon: {result['resIcon']}")
print(f"Style: shape=mxgraph.aws4.resourceIcon;resIcon={result['resIcon']};")
print()
if __name__ == "__main__":
main()
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| writing-skillsobra/superpowersUse when creating new skills, editing existing skills, or verifying skills work before deployment | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| xlsxanthropics/skillsUse this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing .xlsx, .xlsm, .xltx, .csv, or .tsv file (e.g., adding columns, computing formulas, formatting, charting, cleaning messy data); create a new spreadsheet from scratch or from other data sources; or convert between tabular file formats. Trigger especially when the user references a spreadsheet file by name or path — even casually (like "the xlsx in my downloads") — and wants something done to it or produced from it. Also trigger for cleaning or restructuring messy tabular data files (malformed rows, misplaced headers, junk data) into proper spreadsheets. The deliverable must be a spreadsheet file. Do NOT trigger when the primary deliverable is a Word document, HTML report, standalone Python script, database pipeline, or Google Sheets API integration, even if tabular data is involved. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| shipping-and-launchaddyosmani/agent-skillsPrepares production launches. Use when preparing to deploy to production, or when asking what needs to be in place before shipping. Use when you need a pre-launch checklist, when setting up monitoring, when planning a staged rollout, or when you need a rollback strategy. | Stars: 119k | Updated | Claude CodeCodex | Verified | Install |
| childhoodthedotmack/claude-memBabysit a shipped release after merge, publication, or deployment. Verify published packages, production behavior, installed plugins, and late CI or user reports until the observation window is clean; use babysit for PR readiness before release. | Stars: 118k | Updated | Claude CodeCodex | Verified | Install |