repo
stringclasses
454 values
file_path
stringlengths
5
201
extension
stringclasses
1 value
content
stringlengths
8
509k
num_lines
int64
3
16.9k
size_bytes
int64
8
511k
claude-code-templates
cli-tool/components/skills/productivity/notebooklm/scripts/config.py
.py
""" Configuration for NotebookLM Skill Centralizes constants, selectors, and paths """ from pathlib import Path # Paths SKILL_DIR = Path(__file__).parent.parent DATA_DIR = SKILL_DIR / "data" BROWSER_STATE_DIR = DATA_DIR / "browser_state" BROWSER_PROFILE_DIR = BROWSER_STATE_DIR / "browser_profile" STATE_FILE = BROWSER...
45
1,228
claude-code-templates
cli-tool/components/skills/productivity/notebooklm/scripts/browser_utils.py
.py
""" Browser Utilities for NotebookLM Skill Handles browser launching, stealth features, and common interactions """ import json import time import random from typing import Optional, List from patchright.sync_api import Playwright, BrowserContext, Page from config import BROWSER_PROFILE_DIR, STATE_FILE, BROWSER_ARGS,...
108
3,525
claude-code-templates
cli-tool/components/skills/productivity/nowait/scripts/nowait_processor.py
.py
#!/usr/bin/env python3 """ NOWAIT Logit Processor Implements the NOWAIT technique for efficient reasoning by suppressing self-reflection tokens during inference. Reference: "Wait, We Don't Need to 'Wait'! Removing Thinking Tokens Improves Reasoning Efficiency" (Wang et al., 2025) Usage: from nowait_p...
309
10,186
claude-code-templates
cli-tool/components/skills/document-processing/docx/scripts/office/soffice.py
.py
""" Helper for running LibreOffice (soffice) in environments where AF_UNIX sockets may be blocked (e.g., sandboxed VMs). Detects the restriction at runtime and applies an LD_PRELOAD shim if needed. Usage: from office.soffice import run_soffice, get_soffice_env # Option 1 – run soffice directly result = r...
184
5,301
claude-code-templates
cli-tool/components/skills/document-processing/docx/scripts/office/validators/docx.py
.py
""" Validator for Word document XML files against XSD schemas. """ import random import re import tempfile import zipfile import defusedxml.minidom import lxml.etree from .base import BaseSchemaValidator class DOCXSchemaValidator(BaseSchemaValidator): WORD_2006_NAMESPACE = "http://schemas.openxmlformats.org/w...
447
16,376
claude-code-templates
cli-tool/components/skills/document-processing/spreadsheet/references/examples/openpyxl/read_existing_spreadsheet.py
.py
"""Read an existing .xlsx and print a small summary. If --input is not provided, this script creates a tiny sample workbook in /tmp and reads that instead. """ from __future__ import annotations import argparse import tempfile from pathlib import Path from openpyxl import Workbook, load_workbook def create_sample...
60
1,622
claude-code-templates
cli-tool/components/skills/document-processing/spreadsheet/references/examples/openpyxl/create_basic_spreadsheet.py
.py
"""Create a basic spreadsheet with two sheets and a simple formula. Usage: python3 create_basic_spreadsheet.py --output /tmp/basic_spreadsheet.xlsx """ from __future__ import annotations import argparse from pathlib import Path from openpyxl import Workbook from openpyxl.utils import get_column_letter def main(...
52
1,456
claude-code-templates
cli-tool/components/skills/document-processing/spreadsheet/references/examples/openpyxl/create_spreadsheet_with_styling.py
.py
"""Generate a styled games scoreboard workbook using openpyxl. Usage: python3 create_spreadsheet_with_styling.py --output /tmp/GamesSimpleStyling.xlsx """ from __future__ import annotations import argparse from pathlib import Path from openpyxl import Workbook from openpyxl.formatting.rule import FormulaRule from...
97
3,180
claude-code-templates
cli-tool/components/skills/document-processing/spreadsheet/references/examples/openpyxl/styling_spreadsheet.py
.py
"""Create a styled spreadsheet with headers, borders, and a total row. Usage: python3 styling_spreadsheet.py --output /tmp/styling_spreadsheet.xlsx """ from __future__ import annotations import argparse from pathlib import Path from openpyxl import Workbook from openpyxl.styles import Alignment, Border, Font, Pat...
80
1,998
claude-code-templates
cli-tool/components/skills/document-processing/pdf-processing-pro/scripts/analyze_form.py
.py
#!/usr/bin/env python3 """ Analyze PDF form fields and structure. Usage: python analyze_form.py input.pdf [--output fields.json] [--verbose] Returns: JSON with all form fields, types, positions, and metadata Exit codes: 0 - Success 1 - File not found 2 - Invalid PDF 3 - Processing error """ ...
308
8,684
claude-code-templates
cli-tool/components/skills/document-processing/xlsx-official/scripts/recalc.py
.py
""" Excel Formula Recalculation Script Recalculates all formulas in an Excel file using LibreOffice """ import json import os import platform import subprocess import sys from pathlib import Path from office.soffice import get_soffice_env from openpyxl import load_workbook MACRO_DIR_MACOS = "~/Library/Application S...
185
5,782
claude-code-templates
cli-tool/components/skills/document-processing/doc/scripts/render_docx.py
.py
import argparse import os import re import subprocess import tempfile import xml.etree.ElementTree as ET from os import makedirs, replace from os.path import abspath, basename, exists, expanduser, join, splitext from shutil import which import sys from typing import Sequence, cast from zipfile import ZipFile from pdf2...
297
9,700
claude-code-templates
cli-tool/components/skills/video/sora/scripts/sora.py
.py
#!/usr/bin/env python3 """Create and manage Sora videos with the OpenAI Video API. Defaults to sora-2 and a structured prompt augmentation workflow. """ from __future__ import annotations import argparse import asyncio import json import os from pathlib import Path import re import sys import time from typing import...
971
32,585
claude-code-templates
cli-tool/components/skills/analytics/google-analytics/scripts/analyze.py
.py
#!/usr/bin/env python3 """ Google Analytics Data Analysis Tool Performs higher-level analysis on Google Analytics data including: - Period comparisons (current vs previous) - Trend detection - Performance insights - Automated recommendations Usage: python analyze.py --period last-30-days --compare previous-period...
460
15,777
claude-code-templates
cli-tool/components/skills/analytics/google-analytics/scripts/ga_client.py
.py
#!/usr/bin/env python3 """ Google Analytics 4 Data API Client Fetches analytics data from Google Analytics 4 using the Data API. Authentication uses service account credentials from environment variables. Usage: python ga_client.py --days 30 --metrics sessions,users python ga_client.py --start 2026-01-01 --en...
346
11,325
claude-code-templates
cli-tool/components/skills/creative-design/executing-marketing-campaigns/scripts/marketing_utils.py
.py
#!/usr/bin/env python3 """ Marketing Campaign Utility Script Helps with: - Generating UTM parameters for campaign links - Validating UTM parameter formats - Creating campaign tracking URLs - Exporting campaign tracking configuration Usage: python marketing_utils.py --action generate_utm --campaign "Q3_Product_Lau...
335
11,857
claude-code-templates
cli-tool/components/skills/creative-design/imagegen/scripts/image_gen.py
.py
#!/usr/bin/env python3 """Generate or edit images with the OpenAI Image API. Defaults to gpt-image-1.5 and a structured prompt augmentation workflow. """ from __future__ import annotations import argparse import asyncio import base64 import json import os from pathlib import Path import re import sys import time fro...
877
29,949
claude-code-templates
cli-tool/components/skills/creative-design/draw-io/scripts/find_aws_icon.py
.py
#!/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 d...
80
2,208
claude-code-templates
cli-tool/components/skills/creative-design/ux-researcher-designer/scripts/persona_generator.py
.py
#!/usr/bin/env python3 """ Data-Driven Persona Generator Creates research-backed user personas from user data and interviews """ import json from typing import Dict, List, Tuple from collections import Counter, defaultdict import random class PersonaGenerator: """Generate data-driven personas from user research""...
509
20,849
claude-code-templates
cli-tool/components/skills/creative-design/luma-imagegen/scripts/luma_imagegen.py
.py
#!/usr/bin/env python3 """ Luma AI Image Generation CLI Generates images via the Luma Dream Machine API (Photon model). Usage: python3 luma_imagegen.py --prompt "a misty mountain lake at sunrise" --aspect-ratio 16:9 python3 luma_imagegen.py --check-key """ import argparse import json import os import sys impo...
235
8,533
claude-code-templates
cli-tool/components/skills/creative-design/ui-design-system/scripts/design_token_generator.py
.py
#!/usr/bin/env python3 """ Design Token Generator Creates consistent design system tokens for colors, typography, spacing, and more """ import json from typing import Dict, List, Tuple import colorsys class DesignTokenGenerator: """Generate comprehensive design system tokens""" def __init__(self): ...
530
17,679
claude-code-templates
cli-tool/components/skills/creative-design/meme-factory/scripts/meme_generator.py
.py
#!/usr/bin/env python3 """Meme Generator Helper. A Python interface for the memegen.link API to generate memes programmatically. Usage: python meme_generator.py generate buzz "memes" "memes everywhere" python meme_generator.py list-templates python meme_generator.py suggest "deployment success" Or import...
245
8,287
claude-code-templates
cli-tool/components/skills/creative-design/mobile-design/scripts/mobile_audit.py
.py
#!/usr/bin/env python3 """ Mobile UX Audit Script - Full Mobile Design Coverage Analyzes React Native / Flutter code for compliance with: 1. TOUCH PSYCHOLOGY (touch-psychology.md): - Touch Target Sizes (44pt iOS, 48dp Android, 44px WCAG) - Touch Target Spacing (8px minimum gap) - Thumb Zone Placement (primar...
671
35,976
claude-code-templates
cli-tool/components/skills/enterprise-communication/quality-documentation-manager/scripts/example.py
.py
#!/usr/bin/env python3 """ Example helper script for quality-documentation-manager This is a placeholder script that can be executed directly. Replace with actual implementation or delete if not needed. Example real scripts from other skills: - pdf/scripts/fill_fillable_fields.py - Fills PDF form fields - pdf/scripts...
20
617
claude-code-templates
cli-tool/components/skills/enterprise-communication/qms-audit-expert/scripts/example.py
.py
#!/usr/bin/env python3 """ Example helper script for qms-audit-expert This is a placeholder script that can be executed directly. Replace with actual implementation or delete if not needed. Example real scripts from other skills: - pdf/scripts/fill_fillable_fields.py - Fills PDF form fields - pdf/scripts/convert_pdf_...
20
591
claude-code-templates
cli-tool/components/skills/enterprise-communication/information-security-manager-iso27001/scripts/example.py
.py
#!/usr/bin/env python3 """ Example helper script for information-security-manager-iso27001 This is a placeholder script that can be executed directly. Replace with actual implementation or delete if not needed. Example real scripts from other skills: - pdf/scripts/fill_fillable_fields.py - Fills PDF form fields - pdf...
20
633
claude-code-templates
cli-tool/components/skills/enterprise-communication/daily-meeting-update/scripts/claude_digest.py
.py
#!/usr/bin/env python3 """ Get Claude Code conversation digest for daily standup integration. Usage: claude_digest.py [--date DATE] [--project PATH] [--format json|text] Examples: claude_digest.py # Yesterday's digest (default) claude_digest.py --date today # Today's digest cl...
353
10,692
claude-code-templates
cli-tool/components/skills/enterprise-communication/mdr-745-specialist/scripts/example.py
.py
#!/usr/bin/env python3 """ Example helper script for mdr-745-specialist This is a placeholder script that can be executed directly. Replace with actual implementation or delete if not needed. Example real scripts from other skills: - pdf/scripts/fill_fillable_fields.py - Fills PDF form fields - pdf/scripts/convert_pd...
20
595
claude-code-templates
cli-tool/components/skills/enterprise-communication/quality-manager-qmr/scripts/example.py
.py
#!/usr/bin/env python3 """ Example helper script for quality-manager-qmr This is a placeholder script that can be executed directly. Replace with actual implementation or delete if not needed. Example real scripts from other skills: - pdf/scripts/fill_fillable_fields.py - Fills PDF form fields - pdf/scripts/convert_p...
20
597
claude-code-templates
cli-tool/components/skills/enterprise-communication/capa-officer/scripts/example.py
.py
#!/usr/bin/env python3 """ Example helper script for capa-officer This is a placeholder script that can be executed directly. Replace with actual implementation or delete if not needed. Example real scripts from other skills: - pdf/scripts/fill_fillable_fields.py - Fills PDF form fields - pdf/scripts/convert_pdf_to_i...
20
583
claude-code-templates
cli-tool/components/skills/enterprise-communication/isms-audit-expert/scripts/example.py
.py
#!/usr/bin/env python3 """ Example helper script for isms-audit-expert This is a placeholder script that can be executed directly. Replace with actual implementation or delete if not needed. Example real scripts from other skills: - pdf/scripts/fill_fillable_fields.py - Fills PDF form fields - pdf/scripts/convert_pdf...
20
593
claude-code-templates
cli-tool/components/skills/enterprise-communication/risk-management-specialist/scripts/example.py
.py
#!/usr/bin/env python3 """ Example helper script for risk-management-specialist This is a placeholder script that can be executed directly. Replace with actual implementation or delete if not needed. Example real scripts from other skills: - pdf/scripts/fill_fillable_fields.py - Fills PDF form fields - pdf/scripts/co...
20
611
claude-code-templates
cli-tool/components/skills/enterprise-communication/regulatory-affairs-head/scripts/regulatory_tracker.py
.py
#!/usr/bin/env python3 """ Regulatory Submission Tracking System Automates monitoring and reporting of regulatory submission status """ import json import datetime from typing import Dict, List, Optional from dataclasses import dataclass, asdict from enum import Enum class SubmissionType(Enum): FDA_510K = "FDA_51...
200
8,223
claude-code-templates
cli-tool/components/skills/enterprise-communication/quality-manager-qms-iso13485/scripts/example.py
.py
#!/usr/bin/env python3 """ Example helper script for quality-manager-qms-iso13485 This is a placeholder script that can be executed directly. Replace with actual implementation or delete if not needed. Example real scripts from other skills: - pdf/scripts/fill_fillable_fields.py - Fills PDF form fields - pdf/scripts/...
20
615
claude-code-templates
cli-tool/components/skills/enterprise-communication/session-handoff/scripts/validate_handoff.py
.py
#!/usr/bin/env python3 """ Validate a handoff document for completeness and quality. Checks: - No TODO placeholders remaining - Required sections present and populated - No potential secrets detected - Referenced files exist - Quality scoring Usage: python validate_handoff.py <handoff-file> python validate_ha...
317
10,821
claude-code-templates
cli-tool/components/skills/enterprise-communication/session-handoff/scripts/create_handoff.py
.py
#!/usr/bin/env python3 """ Smart scaffold generator for handoff documents. Creates a new handoff document with auto-detected metadata: - Current timestamp - Project path - Git branch (if available) - Recent git log - Modified/staged files - Handoff chain linking Usage: python create_handoff.py [task-slug] [--cont...
386
10,666
claude-code-templates
cli-tool/components/skills/enterprise-communication/session-handoff/scripts/check_staleness.py
.py
#!/usr/bin/env python3 """ Check staleness of a handoff document compared to current project state. Analyzes: - Time since handoff was created - Git commits since handoff - Files that changed since handoff - Branch divergence - Modified files status Usage: python check_staleness.py <handoff-file> python check...
406
13,721
claude-code-templates
cli-tool/components/skills/enterprise-communication/session-handoff/scripts/list_handoffs.py
.py
#!/usr/bin/env python3 """ List available handoff documents in the current project. Searches for handoff documents in .claude/handoffs/ and displays: - Filename with date - Title extracted from document - Status (if marked complete) Usage: python list_handoffs.py # List handoffs in current project p...
126
3,813
claude-code-templates
cli-tool/components/skills/enterprise-communication/session-handoff/evals/setup_test_env.py
.py
#!/usr/bin/env python3 """ Set up a test environment for evaluating the session-handoff skill. Creates a mock project with: - Git repository with commit history - Sample source files - Sample handoffs (fresh and stale) Usage: python setup_test_env.py [--path /tmp/handoff-test] python setup_test_env.py --clean...
416
10,293
claude-code-templates
cli-tool/components/skills/enterprise-communication/gdpr-dsgvo-expert/scripts/example.py
.py
#!/usr/bin/env python3 """ Example helper script for gdpr-dsgvo-expert This is a placeholder script that can be executed directly. Replace with actual implementation or delete if not needed. Example real scripts from other skills: - pdf/scripts/fill_fillable_fields.py - Fills PDF form fields - pdf/scripts/convert_pdf...
20
593
claude-code-templates
cli-tool/components/skills/enterprise-communication/fda-consultant-specialist/scripts/example.py
.py
#!/usr/bin/env python3 """ Example helper script for fda-consultant-specialist This is a placeholder script that can be executed directly. Replace with actual implementation or delete if not needed. Example real scripts from other skills: - pdf/scripts/fill_fillable_fields.py - Fills PDF form fields - pdf/scripts/con...
20
609
claude-code-templates
cli-tool/components/skills/ai-research/post-training-grpo-rl-training/examples/reward_functions_library.py
.py
""" GRPO Reward Functions Library =============================== A collection of battle-tested reward functions for common GRPO training scenarios. Copy and adapt these for your specific use case. Categories: - Correctness rewards (verifiable tasks) - Format rewards (structured output) - Length rewards (verbosity co...
394
11,568
claude-code-templates
cli-tool/components/skills/ai-research/post-training-grpo-rl-training/templates/basic_grpo_training.py
.py
""" Basic GRPO Training Template ============================= A minimal, production-ready template for GRPO training with TRL. Adapt this for your specific task by modifying: 1. Dataset loading (get_dataset function) 2. Reward functions (reward_*_func) 3. System prompt (SYSTEM_PROMPT) 4. Hyperparameters (GRPOConfig) ...
229
6,122
claude-code-templates
cli-tool/components/skills/ai-research/loki-mode/benchmarks/results/humaneval-loki-solutions/162.py
.py
# HumanEval/162 # Loki Mode Multi-Agent Solution # Attempts: 1 # Passed: True def string_to_md5(text): """ Given a string 'text', return its md5 hash equivalent string. If 'text' is an empty string, return None. >>> string_to_md5('Hello world') == '3e25960a79dbc69b674cd4ec67a72c62' """ if text...
16
416
claude-code-templates
cli-tool/components/skills/ai-research/loki-mode/benchmarks/results/2026-01-05-00-49-17/humaneval-solutions/162.py
.py
def string_to_md5(text): """ Given a string 'text', return its md5 hash equivalent string. If 'text' is an empty string, return None. >>> string_to_md5('Hello world') == '3e25960a79dbc69b674cd4ec67a72c62' """ if text == '': return None import hashlib return hashlib.md5(text.enco...
11
337
claude-code-templates
cli-tool/components/skills/git/star-history-chart/scripts/generate_star_history.py
.py
#!/usr/bin/env python3 """Generate a self-hosted "Stargazers over time" SVG chart for any repo. GitHub now restricts the stargazers endpoint to a repository's own admins and collaborators, so third-party live-chart services (star-history free tier, starchart.cc, ...) return "Requires authentication" for everyone. This...
233
7,838
claude-code-templates
cli-tool/components/skills/web-development/shopify-development/scripts/tests/test_shopify_init.py
.py
""" Tests for shopify_init.py Run with: pytest test_shopify_init.py -v --cov=shopify_init --cov-report=term-missing """ import os import sys import json import pytest import subprocess from pathlib import Path from unittest.mock import Mock, patch, mock_open, MagicMock sys.path.insert(0, str(Path(__file__).parent.pa...
380
13,245
claude-code-templates
cli-tool/components/agents/obsidian-ops-team/Scripts/link_suggester.py
.py
#!/usr/bin/env python3 """ Link Suggester for Obsidian Vault Identifies potential connections between notes based on content analysis. """ import os import re from pathlib import Path from collections import defaultdict, Counter import argparse import json class LinkSuggester: def __init__(self, vault_path): ...
301
12,458
claude-code-templates
cli-tool/components/agents/obsidian-ops-team/Scripts/find_keyword_connections.py
.py
#!/usr/bin/env python3 """Find and implement keyword-based connections between files.""" import os import re from collections import Counter, defaultdict from pathlib import Path # Priority keywords to focus on PRIORITY_KEYWORDS = { 'llm', 'langchain', 'langgraph', 'rag', 'embedding', 'vector', 'agent', 'auto...
216
7,672
claude-code-templates
cli-tool/components/agents/obsidian-ops-team/Scripts/implement_entity_connections.py
.py
#!/usr/bin/env python3 """Implement entity-based connections from Link Suggestions Report.""" import re import os from pathlib import Path # Priority entities to focus on PRIORITY_ENTITIES = { 'langchain', 'langgraph', 'llm', 'rag', 'embedding', 'vector', 'mcp', 'model context protocol', 'api integration', '...
195
7,024
claude-code-templates
cli-tool/components/agents/obsidian-ops-team/Scripts/tag_standardizer.py
.py
#!/usr/bin/env python3 """ Tag Standardizer for Obsidian Vault Normalizes and standardizes tags across all notes. """ import os import re import yaml from pathlib import Path from collections import defaultdict, Counter import argparse class TagStandardizer: def __init__(self, vault_path): self.vault_path...
387
13,995
claude-code-templates
cli-tool/components/agents/obsidian-ops-team/Scripts/enhance_tag_standardizer.py
.py
#!/usr/bin/env python3 """ Enhanced Tag Standardizer for hierarchical tag structure. Consolidates similar tags and applies hierarchical organization. """ import os import re import yaml from pathlib import Path from collections import defaultdict, Counter class EnhancedTagStandardizer: def __init__(self, vault_pa...
343
12,730
claude-code-templates
cli-tool/components/agents/obsidian-ops-team/Scripts/metadata_adder.py
.py
#!/usr/bin/env python3 """ Metadata Adder for Obsidian Vault Adds standardized frontmatter to markdown files that lack it. """ import os import re from datetime import datetime from pathlib import Path import argparse class MetadataAdder: def __init__(self, vault_path): self.vault_path = Path(vault_path) ...
197
6,851
claude-code-templates
cli-tool/components/agents/obsidian-ops-team/Scripts/fix_quoted_tags.py
.py
#!/usr/bin/env python3 """ Fix quoted tags in frontmatter by converting single-quoted tags to unquoted format. """ import os import re import yaml from pathlib import Path def fix_quoted_tags(vault_path): """Fix single-quoted tags in all markdown files.""" vault_path = Path(vault_path) files_updated = 0 ...
82
3,112
claude-code-templates
cli-tool/components/agents/obsidian-ops-team/Scripts/daily_notes_connector.py
.py
#!/usr/bin/env python3 """ Daily Notes Connectivity Agent Analyzes daily notes and creates meaningful connections between them and other vault content. """ import os import re import yaml from datetime import datetime, timedelta from pathlib import Path from collections import defaultdict import json class DailyNotes...
306
12,759
claude-code-templates
cli-tool/components/agents/obsidian-ops-team/Scripts/moc_generator.py
.py
#!/usr/bin/env python3 """ MOC (Map of Content) Generator for Obsidian Vault Automatically generates MOCs for directories and topics. """ import os import re from pathlib import Path from datetime import datetime from collections import defaultdict import argparse class MOCGenerator: def __init__(self, vault_path...
296
10,883
claude-code-templates
cli-tool/components/agents/obsidian-ops-team/Scripts/parse_keyword_connections.py
.py
#!/usr/bin/env python3 """Parse keyword connections from Link Suggestions Report.""" import re import sys from pathlib import Path def parse_keyword_connections(report_path): """Parse keyword connections from the report and find meaningful ones.""" with open(report_path, 'r', encoding='utf-8') as f: ...
122
5,028
claude-code-templates
scripts/generate_trending_data.py
.py
#!/usr/bin/env python3 """ Trending Data Generator Script Fetches download data from Supabase and generates trending-data.json for the Claude Code Templates project. """ import json import os import requests import time from datetime import datetime, timedelta, timezone from collections import defaultdict, Counter fro...
866
33,131
claude-code-templates
scripts/generate_claude_jobs.py
.py
""" Generate claude-jobs.json by scraping free job sources for Claude Code positions. Sources (all free, no API keys required): 1. HN Firebase API - "Who is Hiring" thread comments 2. HN Algolia API - Search across multiple months 3. RemoteOK API - JSON job feed 4. WeWorkRemotely RSS - Programming jobs feed 5. Anthrop...
770
29,703
claude-code-templates
scripts/generate_claude_prs.py
.py
#!/usr/bin/env python3 """ Generate Claude Code PRs data. Fetches all PRs from the GitHub API that were created from branches starting with 'claude/' and writes a static JSON file for the dashboard. Usage: python scripts/generate_claude_prs.py Optionally set GITHUB_TOKEN env var to avoid rate limits. """ import...
128
3,549
claude-code-templates
scripts/generate_star_history.py
.py
#!/usr/bin/env python3 """Generate a self-hosted "Stargazers over time" SVG chart. GitHub now restricts the stargazers endpoint to a repository's own admins and collaborators, so third-party live-chart services (star-history free tier, starchart.cc, ...) return "Requires authentication" for everyone. This script fetch...
204
6,836
claude-code-templates
scripts/generate_blog_images.py
.py
#!/usr/bin/env python3 """ Generate blog cover images using Google AI (Imagen API). Reads blog articles from ../docs/blog/blog-articles.json and generates cover images for articles that don't have images in ../docs/blog/assets/ """ import os import sys import json import base64 import requests from pathlib import Pat...
316
11,775
claude-code-templates
scripts/skillspector_scan.py
.py
#!/usr/bin/env python3 """Batch-orchestrate SkillSpector scans over skill components. Discovers skill directories under cli-tool/components/skills/, runs the SkillSpector CLI (`skillspector scan <dir> --no-llm --format json`) on each, aggregates the per-skill JSON reports, and emits: * a Markdown summary (for PR co...
402
14,636
claude-code-templates
scripts/generate_agents_api.py
.py
#!/usr/bin/env python3 """ Generate a lightweight agents API endpoint from components.json This creates docs/api/agents.json for the CLI tool to use """ import json import os def generate_agents_api(): """Generate the agents API file from components.json""" # Read the components.json file components_...
65
2,203
claude-code-templates
scripts/generate_components_json.py
.py
import os import json import shutil import requests import subprocess from collections import defaultdict from dotenv import load_dotenv from pathlib import Path # Load environment variables load_dotenv() def run_security_validation(): """ Run security validation on all components and return the results. ...
967
50,674
claude-code-templates
scripts/generate_blog_images_v2.py
.py
#!/usr/bin/env python3 """ Script to generate blog images using Google Gemini 2.5 Flash Image (nano banana) Generates banners and workflow diagrams for Claude Code component blogs """ import os import base64 from pathlib import Path from dotenv import load_dotenv from google import genai # Load environment variables ...
107
3,941
claude-code-templates
scripts/generate_plugins_json.py
.py
#!/usr/bin/env python3 """ Plugins JSON Generator Script Fetches .claude-plugin/ data from GitHub repos and generates plugins.json with real marketplace.json and plugin.json contents. Usage: python scripts/generate_plugins_json.py Requires: - GITHUB_TOKEN env var (or gh CLI authenticated) - pip install re...
667
25,522
stanford_alpaca
utils.py
.py
import dataclasses import logging import math import os import io import sys import time import json from typing import Optional, Sequence, Union import openai import tqdm from openai import openai_object import copy StrOrOpenAIObject = Union[str, openai_object.OpenAIObject] openai_org = os.getenv("OPENAI_ORG") if o...
174
6,481
stanford_alpaca
train.py
.py
# Copyright 2023 Rohan Taori, Ishaan Gulrajani, Tianyi Zhang, Yann Dubois, Xuechen Li # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LIC...
223
8,263
stanford_alpaca
weight_diff.py
.py
# Copyright 2023 Rohan Taori, Ishaan Gulrajani, Tianyi Zhang, Yann Dubois, Xuechen Li # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LIC...
159
6,137
stanford_alpaca
generate_instruction.py
.py
""" batch_selfinstruct_generate.py run: python -m generate_instruction generate_instruction_following_data \ --output_dir ./ \ --num_instructions_to_generate 10 \ --model_name="text-davinci-003" \ """ import time import json import os import random import re import string from functools import partial from multi...
218
8,381
Jobs_Applier_AI_Agent_AIHawk
main.py
.py
import base64 import sys from pathlib import Path import traceback from typing import List, Optional, Tuple, Dict import click import inquirer import yaml from selenium import webdriver from selenium.common.exceptions import WebDriverException from selenium.webdriver.chrome.service import Service as ChromeService from...
566
22,143
Jobs_Applier_AI_Agent_AIHawk
config.py
.py
# In this file, you can set the configurations of the app. from src.utils.constants import DEBUG, ERROR, LLM_MODEL, OPENAI #config related to logging must have prefix LOG_ LOG_LEVEL = 'ERROR' LOG_SELENIUM_LEVEL = ERROR LOG_TO_FILE = False LOG_TO_CONSOLE = False MINIMUM_WAIT_TIME_IN_SECONDS = 60 JOB_APPLICATIONS_DIR...
23
523
Jobs_Applier_AI_Agent_AIHawk
src/job_application_saver.py
.py
from src.logging import logger import os import json import shutil from dataclasses import asdict from config import JOB_APPLICATIONS_DIR from job import Job from job_application import JobApplication # Base directory where all applications will be saved BASE_DIR = JOB_APPLICATIONS_DIR class ApplicationSaver: ...
93
3,344
Jobs_Applier_AI_Agent_AIHawk
src/logging.py
.py
import logging.handlers import os import sys import logging from loguru import logger from selenium.webdriver.remote.remote_connection import LOGGER as selenium_logger from config import LOG_LEVEL, LOG_SELENIUM_LEVEL, LOG_TO_CONSOLE, LOG_TO_FILE def remove_default_loggers(): """Remove default loggers from root l...
81
2,496
Jobs_Applier_AI_Agent_AIHawk
src/jobContext.py
.py
from src.job import Job from src.job_application import JobApplication from dataclasses import dataclass @dataclass class JobContext: job: Job = None job_application: JobApplication = None
10
199
Jobs_Applier_AI_Agent_AIHawk
src/job.py
.py
from dataclasses import dataclass from src.logging import logger @dataclass class Job: role: str = "" company: str = "" location: str = "" link: str = "" apply_method: str = "" description: str = "" summarize_job_description: str = "" recruiter_link: str = "" resume_path: str = "" ...
35
1,087
Jobs_Applier_AI_Agent_AIHawk
src/resume_schemas/job_application_profile.py
.py
from dataclasses import dataclass import yaml from src.logging import logger @dataclass class SelfIdentification: gender: str pronouns: str veteran: str disability: str ethnicity: str @dataclass class LegalAuthorization: eu_work_authorization: str us_work_authorization: str require...
187
8,625
Jobs_Applier_AI_Agent_AIHawk
src/resume_schemas/resume.py
.py
from dataclasses import dataclass, field from typing import List, Dict, Any, Optional, Union import yaml from pydantic import BaseModel, EmailStr, HttpUrl, Field class PersonalInformation(BaseModel): name: Optional[str] surname: Optional[str] date_of_birth: Optional[str] country: Optional[str] ci...
197
6,920
Jobs_Applier_AI_Agent_AIHawk
src/utils/constants.py
.py
DATE_ALL_TIME = "all_time" DATE_MONTH = "month" DATE_WEEK = "week" DATE_24_HOURS = "24_hours" # constants used in application SECRETS_YAML = "secrets.yaml" WORK_PREFERENCES_YAML = "work_preferences.yaml" PLAIN_TEXT_RESUME_YAML = "plain_text_resume.yaml" # String constants used in the application DEBUG = "DEBUG" INF...
78
1,919
Jobs_Applier_AI_Agent_AIHawk
src/utils/chrome_utils.py
.py
import os import time from selenium import webdriver from selenium.webdriver.chrome.service import Service as ChromeService from selenium.webdriver.chrome.options import Options from webdriver_manager.chrome import ChromeDriverManager # Import webdriver_manager import urllib from src.logging import logger def chrome_...
94
4,629
Jobs_Applier_AI_Agent_AIHawk
src/libs/llm_manager.py
.py
import json import os import re import textwrap import time from abc import ABC, abstractmethod from datetime import datetime from pathlib import Path from typing import Dict, List, Union import httpx from dotenv import load_dotenv from langchain_core.messages import BaseMessage from langchain_core.messages.ai import ...
710
27,253
Jobs_Applier_AI_Agent_AIHawk
src/libs/resume_and_cover_builder/utils.py
.py
""" This module contains utility functions for the Resume and Cover Letter Builder service. """ # app/libs/resume_and_cover_builder/utils.py import json import openai import time from datetime import datetime from typing import Dict, List from langchain_core.messages.ai import AIMessage from langchain_core.prompt_valu...
132
5,324
Jobs_Applier_AI_Agent_AIHawk
src/libs/resume_and_cover_builder/resume_facade.py
.py
""" This module contains the FacadeManager class, which is responsible for managing the interaction between the user and other components of the application. """ # app/libs/resume_and_cover_builder/manager_facade.py import hashlib import inquirer from pathlib import Path from loguru import logger from src.libs.resume...
153
6,730
Jobs_Applier_AI_Agent_AIHawk
src/libs/resume_and_cover_builder/template_base.py
.py
""" This module is used to store the global configuration of the application. """ # app/libs/resume_and_cover_builder/template_base.py prompt_cover_letter_template = """ - **Template to Use** ``` <section id="cover-letter"> <div style="display: flex; justify-content: space-between; align-items: flex-start; margi...
240
8,863
Jobs_Applier_AI_Agent_AIHawk
src/libs/resume_and_cover_builder/module_loader.py
.py
""" This module is used to store the global configuration of the application. """ # app/libs/resume_and_cover_builder/module_loader.py import importlib import sys def load_module(module_path: str, module_name: str): spec = importlib.util.spec_from_file_location(module_name, module_path) module = importlib.util...
13
435
Jobs_Applier_AI_Agent_AIHawk
src/libs/resume_and_cover_builder/config.py
.py
""" This module is used to store the global configuration of the application. """ # app/libs/resume_and_cover_builder/config.py from pathlib import Path class GlobalConfig: def __init__(self): self.STRINGS_MODULE_RESUME_PATH: Path = None self.STRINGS_MODULE_RESUME_JOB_DESCRIPTION_PATH: Path = None ...
37
1,733
Jobs_Applier_AI_Agent_AIHawk
src/libs/resume_and_cover_builder/style_manager.py
.py
import os from pathlib import Path from typing import Dict, List, Tuple, Optional import logging # Configure logging logging.basicConfig(level=logging.DEBUG, format="%(asctime)s - %(levelname)s - %(message)s") class StyleManager: def __init__(self): self.selected_style: Optional[str] = None curre...
89
4,064
Jobs_Applier_AI_Agent_AIHawk
src/libs/resume_and_cover_builder/resume_generator.py
.py
""" This module is responsible for generating resumes and cover letters using the LLM model. """ # app/libs/resume_and_cover_builder/resume_generator.py from string import Template from typing import Any from src.libs.resume_and_cover_builder.llm.llm_generate_resume import LLMResumer from src.libs.resume_and_cover_buil...
65
3,066
Jobs_Applier_AI_Agent_AIHawk
src/libs/resume_and_cover_builder/resume_prompt/strings_feder-cr.py
.py
from src.libs.resume_and_cover_builder.template_base import prompt_header_template, prompt_education_template, prompt_working_experience_template, prompt_projects_template, prompt_achievements_template, prompt_certifications_template, prompt_additional_skills_template prompt_header = """ Act as an HR expert and resume...
93
4,706
Jobs_Applier_AI_Agent_AIHawk
src/libs/resume_and_cover_builder/llm/llm_job_parser.py
.py
import os import tempfile import textwrap import time import re # For email validation from src.libs.resume_and_cover_builder.utils import LoggerChatModel from langchain_core.output_parsers import StrOutputParser from langchain_core.prompts import ChatPromptTemplate, PromptTemplate from langchain_openai import ChatOpe...
209
8,464
Jobs_Applier_AI_Agent_AIHawk
src/libs/resume_and_cover_builder/llm/llm_generate_cover_letter_from_job.py
.py
""" This creates the cover letter (in html, utils will then convert in PDF) matching with job description and plain-text resume """ # app/libs/resume_and_cover_builder/llm_generate_cover_letter_from_job.py import os import textwrap from ..utils import LoggerChatModel from langchain_core.output_parsers import StrOutputP...
92
3,630
Jobs_Applier_AI_Agent_AIHawk
src/libs/resume_and_cover_builder/llm/llm_generate_resume.py
.py
""" Create a class that generates a resume based on a resume and a resume template. """ # app/libs/resume_and_cover_builder/gpt_resume.py import os import textwrap from src.libs.resume_and_cover_builder.utils import LoggerChatModel from langchain_core.output_parsers import StrOutputParser from langchain_core.prompts im...
323
12,457
Jobs_Applier_AI_Agent_AIHawk
src/libs/resume_and_cover_builder/llm/llm_generate_resume_from_job.py
.py
""" Create a class that generates a job description based on a resume and a job description template. """ # app/libs/resume_and_cover_builder/llm_generate_resume_from_job.py import os from src.libs.resume_and_cover_builder.llm.llm_generate_resume import LLMResumer from src.libs.resume_and_cover_builder.utils import Log...
135
5,027
Jobs_Applier_AI_Agent_AIHawk
src/libs/resume_and_cover_builder/resume_job_description_prompt/strings_feder-cr.py
.py
from src.libs.resume_and_cover_builder.template_base import prompt_header_template, prompt_education_template, prompt_working_experience_template, prompt_projects_template, prompt_additional_skills_template, prompt_certifications_template, prompt_achievements_template prompt_header = """ Act as an HR expert and resume...
170
8,886
Jobs_Applier_AI_Agent_AIHawk
src/libs/resume_and_cover_builder/cover_letter_prompt/strings_feder-cr.py
.py
from src.libs.resume_and_cover_builder.template_base import prompt_cover_letter_template cover_letter_template = """ Compose a brief and impactful cover letter based on the provided job description and resume. The letter should be no longer than three paragraphs and should be written in a professional, yet conversati...
52
3,422
CloakBrowser
bin/fetch-widevine.py
.py
#!/usr/bin/env python3 """Fetch the Widevine CDM from Google's component-update server (Linux). The CloakBrowser binary is built with Widevine support, but the CDM itself is a proprietary Google component we don't redistribute. This pulls it at runtime from the same component server Chrome uses, then drops it where th...
302
12,663
CloakBrowser
tests/test_stealth.py
.py
"""Stealth detection tests for cloakbrowser. These tests verify that the stealth Chromium binary passes common bot detection checks. They require network access. """ import os import time import pytest from cloakbrowser import launch PROXY = os.environ.get("CLOAKBROWSER_TEST_PROXY") @pytest.fixture(scope="module"...
281
10,740
CloakBrowser
tests/test_free_version_pin.py
.py
"""A free key must never pin a version (server force-serves latest; a pinned manifest would fail checksum). Paid keys keep pinning.""" from unittest import mock import cloakbrowser.download as dl from cloakbrowser.license import LicenseInfo def _run(monkeypatch, plan): monkeypatch.delenv("CLOAKBROWSER_DOWNLOAD_U...
41
1,523
CloakBrowser
tests/test_extract.py
.py
"""Unit tests for archive extraction — path traversal protection, flattening, permissions.""" import io import os import platform import stat import tarfile import zipfile import pytest from cloakbrowser.download import ( _extract_tar, _extract_zip, _flatten_single_subdir, _is_executable, _make_e...
193
6,362