instruction
stringclasses
100 values
code
stringlengths
78
193k
response
stringlengths
259
170k
file
stringlengths
59
203
Add docstrings that explain purpose and usage
import aiofiles import urllib import mistune import os async def write_to_file(filename: str, text: str) -> None: # Ensure text is a string if not isinstance(text, str): text = str(text) # Convert text to UTF-8, replacing any problematic characters text_utf8 = text.encode('utf-8', errors='repl...
--- +++ @@ -4,6 +4,12 @@ import os async def write_to_file(filename: str, text: str) -> None: + """Asynchronously write text to a file in UTF-8 encoding. + + Args: + filename (str): The filename to write to. + text (str): The text to write. + """ # Ensure text is a string if not isin...
https://raw.githubusercontent.com/assafelovic/gpt-researcher/HEAD/backend/utils.py
Add docstrings following best practices
import asyncio import logging from typing import List, Dict, Any logger = logging.getLogger(__name__) class MCPResearchSkill: def __init__(self, cfg, researcher=None): self.cfg = cfg self.researcher = researcher async def conduct_research_with_tools(self, query: str, selected_tools: List) -...
--- +++ @@ -1,3 +1,8 @@+""" +MCP Research Execution Skill + +Handles research execution using selected MCP tools as a skill component. +""" import asyncio import logging from typing import List, Dict, Any @@ -6,12 +11,37 @@ class MCPResearchSkill: + """ + Handles research execution using selected MCP tools...
https://raw.githubusercontent.com/assafelovic/gpt-researcher/HEAD/gpt_researcher/mcp/research.py
Generate missing documentation strings
from typing import Dict, Any, Callable from ..utils.logger import get_formatted_logger logger = get_formatted_logger() async def stream_output( type, content, output, websocket=None, output_log=True, metadata=None ): if (not websocket or output_log) and type != "images": try: logger.info(...
--- +++ @@ -7,6 +7,16 @@ async def stream_output( type, content, output, websocket=None, output_log=True, metadata=None ): + """ + Streams output to the websocket + Args: + type: + content: + output: + + Returns: + None + """ if (not websocket or output_log) and typ...
https://raw.githubusercontent.com/assafelovic/gpt-researcher/HEAD/gpt_researcher/actions/utils.py
Add docstrings to meet PEP guidelines
# Tavily API Retriever # libraries import os import requests import json class GoogleSearch: def __init__(self, query, headers=None, query_domains=None): self.query = query self.headers = headers or {} self.query_domains = query_domains or None self.api_key = self.headers.get("goo...
--- +++ @@ -7,7 +7,15 @@ class GoogleSearch: + """ + Google API Retriever + """ def __init__(self, query, headers=None, query_domains=None): + """ + Initializes the GoogleSearch object + Args: + query: + """ self.query = query self.headers = hea...
https://raw.githubusercontent.com/assafelovic/gpt-researcher/HEAD/gpt_researcher/retrievers/google/google.py
Add docstrings to existing functions
import json import logging import random import asyncio import argparse import os from pathlib import Path from typing import Dict, List, Optional from dotenv import load_dotenv from gpt_researcher.agent import GPTResearcher from gpt_researcher.utils.enum import ReportType, ReportSource, Tone from gpt_researcher.utils...
--- +++ @@ -1,3 +1,6 @@+""" +Script to run GPT-Researcher queries and evaluate them for hallucination. +""" import json import logging import random @@ -29,13 +32,29 @@ DEFAULT_QUERIES_FILE = "evals/hallucination_eval/inputs/search_queries.jsonl" class ResearchEvaluator: + """Runs GPT-Researcher queries and ev...
https://raw.githubusercontent.com/assafelovic/gpt-researcher/HEAD/evals/hallucination_eval/run_eval.py
Create docstrings for all classes and functions
import asyncio import os import argparse from typing import Callable, List, TypeVar from tqdm import tqdm from dotenv import load_dotenv from gpt_researcher.agent import GPTResearcher from gpt_researcher.utils.enum import ReportType, ReportSource, Tone from evals.simple_evals.simpleqa_eval import SimpleQAEval from lang...
--- +++ @@ -15,6 +15,7 @@ R = TypeVar('R') def map_with_progress(fn: Callable[[T], R], items: List[T]) -> List[R]: + """Map function over items with progress bar.""" return [fn(item) for item in tqdm(items)] # Load environment variables from .env file @@ -27,6 +28,7 @@ raise ValueError(f"{var} not...
https://raw.githubusercontent.com/assafelovic/gpt-researcher/HEAD/evals/simple_evals/run_eval.py
Add docstrings to improve code quality
import json import os import warnings from typing import Any, Dict, List, Type, Union, get_args, get_origin from gpt_researcher.llm_provider.generic.base import ReasoningEfforts from .variables.base import BaseConfig from .variables.default import DEFAULT_CONFIG class Config: CONFIG_DIR = os.path.join(os.path...
--- +++ @@ -1,3 +1,9 @@+"""Configuration management for GPT Researcher. + +This module provides the Config class that manages all configuration +settings for GPT Researcher including LLM providers, embeddings, +retrievers, and various operational parameters. +""" import json import os @@ -11,10 +17,26 @@ class ...
https://raw.githubusercontent.com/assafelovic/gpt-researcher/HEAD/gpt_researcher/config/config.py
Write docstrings for utility functions
import re import markdown from typing import List, Dict def extract_headers(markdown_text: str) -> List[Dict]: headers = [] parsed_md = markdown.markdown(markdown_text) lines = parsed_md.split("\n") stack = [] for line in lines: if line.startswith("<h") and len(line) > 2 and line[2].isdigi...
--- +++ @@ -3,6 +3,15 @@ from typing import List, Dict def extract_headers(markdown_text: str) -> List[Dict]: + """ + Extract headers from markdown text. + + Args: + markdown_text (str): The markdown text to process. + + Returns: + List[Dict]: A list of dictionaries representing the header ...
https://raw.githubusercontent.com/assafelovic/gpt-researcher/HEAD/gpt_researcher/actions/markdown_processing.py
Add docstrings to incomplete code
import os from ..utils import check_pkg class ExaSearch: def __init__(self, query, query_domains=None): # This validation is necessary since exa_py is optional check_pkg("exa_py") from exa_py import Exa self.query = query self.api_key = self._retrieve_api_key() sel...
--- +++ @@ -3,8 +3,16 @@ class ExaSearch: + """ + Exa API Retriever + """ def __init__(self, query, query_domains=None): + """ + Initializes the ExaSearch object. + Args: + query: The search query. + """ # This validation is necessary since exa_py is o...
https://raw.githubusercontent.com/assafelovic/gpt-researcher/HEAD/gpt_researcher/retrievers/exa/exa.py
Add docstrings to improve code quality
import json import os from typing import Dict, List, Any import time import logging import sys import warnings from pathlib import Path # Suppress Pydantic V2 migration warnings warnings.filterwarnings("ignore", message="Valid config keys have changed in V2") warnings.filterwarnings("ignore", category=UserWarning, mod...
--- +++ @@ -145,6 +145,7 @@ # Routes @app.get("/", response_class=HTMLResponse) async def serve_frontend(): + """Serve the main frontend HTML page.""" frontend_dir = os.path.abspath(os.path.join(os.path.dirname(__file__), "..", "..", "frontend")) index_path = os.path.join(frontend_dir, "index.html") ...
https://raw.githubusercontent.com/assafelovic/gpt-researcher/HEAD/backend/server/app.py
Document functions with detailed explanations
import asyncio import logging from typing import Any, Optional logger = logging.getLogger(__name__) class MCPStreamer: def __init__(self, websocket=None): self.websocket = websocket async def stream_log(self, message: str, data: Any = None): logger.info(message) if self.web...
--- +++ @@ -1,3 +1,8 @@+""" +MCP Streaming Utilities Module + +Handles websocket streaming and logging for MCP operations. +""" import asyncio import logging from typing import Any, Optional @@ -6,11 +11,26 @@ class MCPStreamer: + """ + Handles streaming output for MCP operations. + + Responsible fo...
https://raw.githubusercontent.com/assafelovic/gpt-researcher/HEAD/gpt_researcher/mcp/streaming.py
Include argument descriptions in docstrings
import json import os from typing import Any, Optional from .actions import ( add_references, choose_agent, extract_headers, extract_sections, get_retrievers, get_search_results, table_of_contents, ) from .config import Config from .llm_provider import GenericLLMProvider from .memory impor...
--- +++ @@ -1,3 +1,8 @@+"""GPT Researcher agent module. + +This module provides the main GPTResearcher class that orchestrates +autonomous research and report generation using LLMs and web search. +""" import json import os @@ -29,6 +34,20 @@ class GPTResearcher: + """Main GPT Researcher agent class. + + ...
https://raw.githubusercontent.com/assafelovic/gpt-researcher/HEAD/gpt_researcher/agent.py
Document all endpoints with docstrings
import os import json import requests from typing import List, Dict from urllib.parse import urljoin class SearxSearch(): def __init__(self, query: str, query_domains=None): self.query = query self.query_domains = query_domains or None self.base_url = self.get_searxng_url() def get_se...
--- +++ @@ -6,12 +6,25 @@ class SearxSearch(): + """ + SearxNG API Retriever + """ def __init__(self, query: str, query_domains=None): + """ + Initializes the SearxSearch object + Args: + query: Search query string + """ self.query = query self....
https://raw.githubusercontent.com/assafelovic/gpt-researcher/HEAD/gpt_researcher/retrievers/searx/searx.py
Write docstrings for this repository
from typing import List, Dict, Any, Optional import os import xml.etree.ElementTree as ET import requests class PubMedCentralSearch: def __init__(self, query: str, query_domains=None): self.base_search_url = "https://eutils.ncbi.nlm.nih.gov/entrez/eutils/esearch.fcgi" self.base_fetch_url = "https...
--- +++ @@ -5,6 +5,9 @@ class PubMedCentralSearch: + """ + PubMed Central Full-Text Search + """ def __init__(self, query: str, query_domains=None): self.base_search_url = "https://eutils.ncbi.nlm.nih.gov/entrez/eutils/esearch.fcgi" @@ -22,6 +25,9 @@ self.params = self._populate_par...
https://raw.githubusercontent.com/assafelovic/gpt-researcher/HEAD/gpt_researcher/retrievers/pubmed_central/pubmed_central.py
Document helper functions with docstrings
import asyncio import json import os import re import time import shutil import traceback from typing import Awaitable, Dict, List, Any from fastapi.responses import JSONResponse, FileResponse from gpt_researcher.document.document import DocumentLoader from gpt_researcher import GPTResearcher from utils import write_md...
--- +++ @@ -31,6 +31,7 @@ logger = logging.getLogger(__name__) class CustomLogsHandler: + """Custom handler to capture streaming logs from the research process""" def __init__(self, websocket, task: str): self.logs = [] self.websocket = websocket @@ -53,6 +54,7 @@ }, f, indent=2...
https://raw.githubusercontent.com/assafelovic/gpt-researcher/HEAD/backend/server/server_utils.py
Add detailed documentation for each class
import os from typing import Any OPENAI_EMBEDDING_MODEL = os.environ.get( "OPENAI_EMBEDDING_MODEL", "text-embedding-3-small" ) _SUPPORTED_PROVIDERS = { "openai", "azure_openai", "cohere", "gigachat", "google_vertexai", "google_genai", "fireworks", "ollama", "together", "mi...
--- +++ @@ -1,3 +1,26 @@+"""Embedding provider management for GPT Researcher. + +This module provides the Memory class that handles embedding generation +across multiple providers (OpenAI, Cohere, Google, Ollama, etc.). + +Supported providers: + - openai: OpenAI embeddings + - azure_openai: Azure OpenAI embedding...
https://raw.githubusercontent.com/assafelovic/gpt-researcher/HEAD/gpt_researcher/memory/embeddings.py
Write docstrings describing functionality
from typing import Any from colorama import Fore, Style from gpt_researcher.utils.workers import WorkerPool from ..scraper import Scraper from ..config.config import Config from ..utils.logger import get_formatted_logger logger = get_formatted_logger() async def scrape_urls( urls, cfg: Config, worker_pool: Work...
--- +++ @@ -12,6 +12,16 @@ async def scrape_urls( urls, cfg: Config, worker_pool: WorkerPool ) -> tuple[list[dict[str, Any]], list[dict[str, Any]]]: + """ + Scrapes the urls + Args: + urls: List of urls + cfg: Config (optional) + + Returns: + tuple[list[dict[str, Any]], list[dict[...
https://raw.githubusercontent.com/assafelovic/gpt-researcher/HEAD/gpt_researcher/actions/web_scraping.py
Write docstrings for data processing functions
import os import re import json import pandas import random from typing import Dict, List, Any from langchain_openai import ChatOpenAI GRADER_TEMPLATE = """ Your job is to look at a question, a gold target, and a predicted answer, and then assign a grade of either ["CORRECT", "INCORRECT", "NOT_ATTEMPTED"]. First, I w...
--- +++ @@ -1,3 +1,7 @@+""" +SimpleQA: Measuring short-form factuality in large language models +Adapted for GPT-Researcher from OpenAI's simple-evals +""" import os import re @@ -96,6 +100,7 @@ class SimpleQAEval: def __init__(self, grader_model, num_examples=1): + """Initialize the evaluator with a ...
https://raw.githubusercontent.com/assafelovic/gpt-researcher/HEAD/evals/simple_evals/simpleqa_eval.py
Improve documentation using docstrings
# Google Serper Retriever # libraries import os import requests import json class SerperSearch(): def __init__(self, query, query_domains=None, country=None, language=None, time_range=None, exclude_sites=None): self.query = query self.query_domains = query_domains or None self.country = c...
--- +++ @@ -7,7 +7,20 @@ class SerperSearch(): + """ + Google Serper Retriever with support for country, language, and date filtering + """ def __init__(self, query, query_domains=None, country=None, language=None, time_range=None, exclude_sites=None): + """ + Initializes the SerperSearc...
https://raw.githubusercontent.com/assafelovic/gpt-researcher/HEAD/gpt_researcher/retrievers/serper/serper.py
Provide docstrings following PEP 257
import json import os from typing import Literal, Optional, Sequence import requests class TavilySearch: def __init__(self, query, headers=None, topic="general", query_domains=None): self.query = query self.headers = headers or {} self.topic = topic self.base_url = "https://api....
--- +++ @@ -1,3 +1,8 @@+"""Tavily API search retriever for GPT Researcher. + +This module provides the TavilySearch class for performing web searches +using the Tavily API. +""" import json import os @@ -7,8 +12,20 @@ class TavilySearch: + """ + Tavily API Retriever + """ def __init__(self, quer...
https://raw.githubusercontent.com/assafelovic/gpt-researcher/HEAD/gpt_researcher/retrievers/tavily/tavily_search.py
Generate docstrings for this script
import asyncio import logging from typing import List, Dict, Any, Optional try: from langchain_mcp_adapters.client import MultiServerMCPClient HAS_MCP_ADAPTERS = True except ImportError: HAS_MCP_ADAPTERS = False from ...mcp.client import MCPClientManager from ...mcp.tool_selector import MCPToolSelector fr...
--- +++ @@ -1,3 +1,11 @@+""" +MCP-Based Research Retriever + +A retriever that uses Model Context Protocol (MCP) tools for intelligent research. +This retriever implements a two-stage approach: +1. Tool Selection: LLM selects 2-3 most relevant tools from all available MCP tools +2. Research Execution: LLM uses the sele...
https://raw.githubusercontent.com/assafelovic/gpt-researcher/HEAD/gpt_researcher/retrievers/mcp/retriever.py
Add return value explanations in docstrings
import asyncio import json import logging from typing import List, Dict, Any, Optional logger = logging.getLogger(__name__) class MCPToolSelector: def __init__(self, cfg, researcher=None): self.cfg = cfg self.researcher = researcher async def select_relevant_tools(self, query: str, all_tool...
--- +++ @@ -1,3 +1,8 @@+""" +MCP Tool Selection Module + +Handles intelligent tool selection using LLM analysis. +""" import asyncio import json import logging @@ -7,12 +12,38 @@ class MCPToolSelector: + """ + Handles intelligent selection of MCP tools using LLM analysis. + + Responsible for: + -...
https://raw.githubusercontent.com/assafelovic/gpt-researcher/HEAD/gpt_researcher/mcp/tool_selector.py
Write docstrings for algorithm functions
import asyncio import argparse from argparse import RawTextHelpFormatter from uuid import uuid4 import os from dotenv import load_dotenv from gpt_researcher import GPTResearcher from gpt_researcher.utils.enum import ReportType, ReportSource, Tone from backend.report_type import DetailedReport from backend.utils impor...
--- +++ @@ -1,3 +1,13 @@+""" +Provides a command line interface for the GPTResearcher class. + +Usage: + +```shell +python cli.py "<query>" --report_type <report_type> --tone <tone> --query_domains <foo.com,bar.com> +``` + +""" import asyncio import argparse from argparse import RawTextHelpFormatter @@ -126,6 +136,1...
https://raw.githubusercontent.com/assafelovic/gpt-researcher/HEAD/cli.py
Generate missing documentation strings
import asyncio import base64 import hashlib import os import logging from pathlib import Path from typing import Any, Dict, List, Optional logger = logging.getLogger(__name__) class ImageGeneratorProvider: # Gemini models use generate_content with inline_data response GEMINI_IMAGE_MODELS = [ "m...
--- +++ @@ -1,3 +1,12 @@+"""Image generation provider for GPT Researcher. + +This module provides image generation capabilities using Google's Gemini/Imagen +models via the google.genai SDK. + +Supported models: +- Gemini image models (free tier): models/gemini-2.5-flash-image +- Imagen models (requires billing): image...
https://raw.githubusercontent.com/assafelovic/gpt-researcher/HEAD/gpt_researcher/llm_provider/image/image_generator.py
Add docstrings to improve collaboration
from typing import Any, Dict, List, Optional import requests import os class CustomRetriever: def __init__(self, query: str, query_domains=None): self.endpoint = os.getenv('RETRIEVER_ENDPOINT') if not self.endpoint: raise ValueError("RETRIEVER_ENDPOINT environment variable not set") ...
--- +++ @@ -4,6 +4,9 @@ class CustomRetriever: + """ + Custom API Retriever + """ def __init__(self, query: str, query_domains=None): self.endpoint = os.getenv('RETRIEVER_ENDPOINT') @@ -14,6 +17,9 @@ self.query = query def _populate_params(self) -> Dict[str, Any]: + ""...
https://raw.githubusercontent.com/assafelovic/gpt-researcher/HEAD/gpt_researcher/retrievers/custom/custom.py
Write documentation strings for class attributes
import json_repair from gpt_researcher.llm_provider.generic.base import ReasoningEfforts from ..utils.llm import create_chat_completion from ..prompts import PromptFamily from typing import Any, List, Dict from ..config import Config import logging logger = logging.getLogger(__name__) async def get_search_results(qu...
--- +++ @@ -10,6 +10,18 @@ logger = logging.getLogger(__name__) async def get_search_results(query: str, retriever: Any, query_domains: List[str] = None, researcher=None) -> List[Dict[str, Any]]: + """ + Get web search results for a given query. + + Args: + query: The search query + retriever:...
https://raw.githubusercontent.com/assafelovic/gpt-researcher/HEAD/gpt_researcher/actions/query_processing.py
Create Google-style docstrings for my code
import json import logging import re import json_repair from ..prompts import PromptFamily from ..utils.llm import create_chat_completion logger = logging.getLogger(__name__) async def choose_agent( query, cfg, parent_query=None, cost_callback: callable = None, headers=None, prompt_family: ...
--- +++ @@ -1,3 +1,8 @@+"""Agent creation and selection utilities for GPT Researcher. + +This module provides functions to automatically select and configure +the appropriate research agent based on the query type. +""" import json import logging @@ -19,6 +24,20 @@ prompt_family: type[PromptFamily] | PromptFami...
https://raw.githubusercontent.com/assafelovic/gpt-researcher/HEAD/gpt_researcher/actions/agent_creator.py
Add concise docstrings to each method
import asyncio import logging from typing import List, Dict, Any, Optional try: from langchain_mcp_adapters.client import MultiServerMCPClient HAS_MCP_ADAPTERS = True except ImportError: HAS_MCP_ADAPTERS = False logger = logging.getLogger(__name__) class MCPClientManager: def __init__(self, mcp_con...
--- +++ @@ -1,3 +1,8 @@+""" +MCP Client Management Module + +Handles MCP client creation, configuration conversion, and connection management. +""" import asyncio import logging from typing import List, Dict, Any, Optional @@ -12,13 +17,33 @@ class MCPClientManager: + """ + Manages MCP client lifecycle and...
https://raw.githubusercontent.com/assafelovic/gpt-researcher/HEAD/gpt_researcher/mcp/client.py
Generate helpful docstrings for debugging
import importlib.util import logging import os import sys logger = logging.getLogger(__name__) async def stream_output(log_type, step, content, websocket=None, with_data=False, data=None): if websocket: try: if with_data: await websocket.send_json({ "type":...
--- +++ @@ -1,3 +1,8 @@+"""Utility functions for GPT Researcher retrievers. + +This module provides helper functions and constants used by the +various search retriever implementations. +""" import importlib.util import logging @@ -7,6 +12,17 @@ logger = logging.getLogger(__name__) async def stream_output(log_ty...
https://raw.githubusercontent.com/assafelovic/gpt-researcher/HEAD/gpt_researcher/retrievers/utils.py
Improve documentation using docstrings
# SearchApi Retriever # libraries import os import requests import urllib.parse class SearchApiSearch(): def __init__(self, query, query_domains=None): self.query = query self.api_key = self.get_api_key() def get_api_key(self): try: api_key = os.environ["SEARCHAPI_API_KEY...
--- +++ @@ -7,11 +7,24 @@ class SearchApiSearch(): + """ + SearchApi Retriever + """ def __init__(self, query, query_domains=None): + """ + Initializes the SearchApiSearch object + Args: + query: + """ self.query = query self.api_key = self.get_...
https://raw.githubusercontent.com/assafelovic/gpt-researcher/HEAD/gpt_researcher/retrievers/searchapi/searchapi.py
Write proper docstrings for these functions
import warnings from datetime import date, datetime, timezone from langchain_core.documents import Document from .config import Config from .utils.enum import ReportSource, ReportType, Tone from .utils.enum import PromptFamily as PromptFamilyEnum from typing import Callable, List, Dict, Any ## Prompt Families #####...
--- +++ @@ -12,13 +12,43 @@ ## Prompt Families ############################################################# class PromptFamily: + """General purpose class for prompt formatting. + + This may be overwritten with a derived class that is model specific. The + methods are broken down into two groups: + + 1....
https://raw.githubusercontent.com/assafelovic/gpt-researcher/HEAD/gpt_researcher/prompts.py
Add verbose docstrings with examples
# SerpApi Retriever # libraries import os import requests import urllib.parse class SerpApiSearch(): def __init__(self, query, query_domains=None): self.query = query self.query_domains = query_domains or None self.api_key = self.get_api_key() def get_api_key(self): try: ...
--- +++ @@ -7,12 +7,25 @@ class SerpApiSearch(): + """ + SerpApi Retriever + """ def __init__(self, query, query_domains=None): + """ + Initializes the SerpApiSearch object + Args: + query: + """ self.query = query self.query_domains = query_dom...
https://raw.githubusercontent.com/assafelovic/gpt-researcher/HEAD/gpt_researcher/retrievers/serpapi/serpapi.py
Add docstrings explaining edge cases
import logging from pathlib import Path from typing import Dict, List, Optional from dotenv import load_dotenv from judges.classifiers.hallucination import HaluEvalDocumentSummaryNonFactual # Configure logging logging.basicConfig( level=logging.INFO, format='%(asctime)s - %(name)s - %(levelname)s - %(message)...
--- +++ @@ -1,3 +1,6 @@+""" +Evaluate model outputs for hallucination using the judges library. +""" import logging from pathlib import Path from typing import Dict, List, Optional @@ -13,12 +16,24 @@ logger = logging.getLogger(__name__) class HallucinationEvaluator: + """Evaluates model outputs for hallucinat...
https://raw.githubusercontent.com/assafelovic/gpt-researcher/HEAD/evals/hallucination_eval/evaluate.py
Create documentation for each function signature
def get_retriever(retriever: str): match retriever: case "google": from gpt_researcher.retrievers import GoogleSearch return GoogleSearch case "searx": from gpt_researcher.retrievers import SearxSearch return SearxSearch case "searchapi": ...
--- +++ @@ -1,6 +1,35 @@+"""Retriever factory and utilities for GPT Researcher. + +This module provides functions to instantiate and manage various +search retriever implementations. +""" def get_retriever(retriever: str): + """Get a retriever class by name. + + Args: + retriever: The name of the retr...
https://raw.githubusercontent.com/assafelovic/gpt-researcher/HEAD/gpt_researcher/actions/retriever.py
Write beginner-friendly docstrings
import asyncio import os from typing import Optional from langchain_classic.retrievers import ContextualCompressionRetriever from langchain_classic.retrievers.document_compressors import ( DocumentCompressorPipeline, EmbeddingsFilter, ) from langchain_core.documents import Document from langchain_text_splitte...
--- +++ @@ -1,3 +1,18 @@+"""Context compression utilities for GPT Researcher. + +This module provides classes for compressing and retrieving relevant +context from documents using embeddings and similarity filtering. + +The compression pipeline: +1. Splits documents into chunks +2. Filters chunks by embedding similarit...
https://raw.githubusercontent.com/assafelovic/gpt-researcher/HEAD/gpt_researcher/context/compression.py
Help me document legacy Python code
from typing import Dict, List import requests class SemanticScholarSearch: BASE_URL = "https://api.semanticscholar.org/graph/v1/paper/search" VALID_SORT_CRITERIA = ["relevance", "citationCount", "publicationDate"] def __init__(self, query: str, sort: str = "relevance", query_domains=None): self...
--- +++ @@ -4,16 +4,31 @@ class SemanticScholarSearch: + """ + Semantic Scholar API Retriever + """ BASE_URL = "https://api.semanticscholar.org/graph/v1/paper/search" VALID_SORT_CRITERIA = ["relevance", "citationCount", "publicationDate"] def __init__(self, query: str, sort: str = "relev...
https://raw.githubusercontent.com/assafelovic/gpt-researcher/HEAD/gpt_researcher/retrievers/semantic_scholar/semantic_scholar.py
Add docstrings for production code
import json from typing import Dict, List, Optional from ..actions import stream_output from ..config.config import Config from ..utils.llm import create_chat_completion class SourceCurator: def __init__(self, researcher): self.researcher = researcher async def curate_sources( self, ...
--- +++ @@ -1,3 +1,8 @@+"""Source curator skill for GPT Researcher. + +This module provides the SourceCurator class that evaluates and ranks +research sources based on relevance, credibility, and reliability. +""" import json from typing import Dict, List, Optional @@ -8,8 +13,21 @@ class SourceCurator: + ""...
https://raw.githubusercontent.com/assafelovic/gpt-researcher/HEAD/gpt_researcher/skills/curator.py
Write docstrings describing functionality
from typing import List from pydantic import BaseModel, Field class Subtopic(BaseModel): task: str = Field(description="Task name", min_length=1) class Subtopics(BaseModel): subtopics: List[Subtopic] = []
--- +++ @@ -1,3 +1,4 @@+"""Pydantic validation models for GPT Researcher.""" from typing import List @@ -5,8 +6,21 @@ class Subtopic(BaseModel): + """Model representing a single research subtopic. + + Attributes: + task: The name or description of the subtopic task. + """ task: str = Field...
https://raw.githubusercontent.com/assafelovic/gpt-researcher/HEAD/gpt_researcher/utils/validators.py
Include argument descriptions in docstrings
from __future__ import annotations from bs4 import BeautifulSoup from requests.compat import urljoin def extract_hyperlinks(soup: BeautifulSoup, base_url: str) -> list[tuple[str, str]]: return [ (link.text, urljoin(base_url, link["href"])) for link in soup.find_all("a", href=True) ] def for...
--- +++ @@ -1,3 +1,4 @@+"""HTML processing functions""" from __future__ import annotations from bs4 import BeautifulSoup @@ -5,6 +6,15 @@ def extract_hyperlinks(soup: BeautifulSoup, base_url: str) -> list[tuple[str, str]]: + """Extract hyperlinks from a BeautifulSoup object + + Args: + soup (Beauti...
https://raw.githubusercontent.com/assafelovic/gpt-researcher/HEAD/gpt_researcher/scraper/browser/processing/html.py
Write beginner-friendly docstrings
import asyncio import logging from typing import Any, Dict, List, Tuple, Callable, Optional from langchain_core.messages import HumanMessage, SystemMessage, AIMessage from langchain_core.tools import tool from .llm import create_chat_completion logger = logging.getLogger(__name__) async def create_chat_completion_...
--- +++ @@ -1,3 +1,10 @@+""" +Tool-enabled LLM utilities for GPT Researcher + +This module provides provider-agnostic tool calling functionality using LangChain's +unified interface. It allows any LLM provider that supports function calling to use +tools seamlessly. +""" import asyncio import logging @@ -22,6 +29,3...
https://raw.githubusercontent.com/assafelovic/gpt-researcher/HEAD/gpt_researcher/utils/tools.py
Write clean docstrings for readability
import asyncio import json import logging import re from typing import Any, Dict, List, Optional, Tuple from ..actions.utils import stream_output from ..llm_provider.image import ImageGeneratorProvider from ..utils.llm import create_chat_completion logger = logging.getLogger(__name__) class ImageGenerator: ...
--- +++ @@ -1,3 +1,8 @@+"""Image generator skill for GPT Researcher. + +This module provides the ImageGenerator class that handles generating +contextually relevant images for research reports using AI image generation. +""" import asyncio import json @@ -13,8 +18,24 @@ class ImageGenerator: + """Generates c...
https://raw.githubusercontent.com/assafelovic/gpt-researcher/HEAD/gpt_researcher/skills/image_generator.py
Add docstrings that explain inputs and outputs
from enum import Enum class ReportType(Enum): ResearchReport = "research_report" ResourceReport = "resource_report" OutlineReport = "outline_report" CustomReport = "custom_report" DetailedReport = "detailed_report" SubtopicReport = "subtopic_report" DeepResearch = "deep" class ReportSou...
--- +++ @@ -1,8 +1,23 @@+"""Enumeration types for GPT Researcher configuration.""" from enum import Enum class ReportType(Enum): + """Enumeration of available report types for research output. + + Defines the different types of reports that can be generated + by the GPT Researcher agent. + + Attribu...
https://raw.githubusercontent.com/assafelovic/gpt-researcher/HEAD/gpt_researcher/utils/enum.py
Add docstrings explaining edge cases
from __future__ import annotations import traceback import pickle from pathlib import Path from sys import platform import time import random import string import os from bs4 import BeautifulSoup from typing import Iterable, cast from .processing.scrape_skills import (scrape_pdf_with_pymupdf, ...
--- +++ @@ -119,6 +119,7 @@ raise def _load_saved_cookies(self): + """Load saved cookies before visiting the target URL""" cookie_file = Path(self.cookie_filename) if cookie_file.exists(): cookies = pickle.load(open(self.cookie_filename, "rb")) @@ -128,6 +129,7 @...
https://raw.githubusercontent.com/assafelovic/gpt-researcher/HEAD/gpt_researcher/scraper/browser/browser.py
Create documentation for each function signature
import tiktoken # Per OpenAI Pricing Page: https://openai.com/api/pricing/ ENCODING_MODEL = "o200k_base" INPUT_COST_PER_TOKEN = 0.000005 OUTPUT_COST_PER_TOKEN = 0.000015 IMAGE_INFERENCE_COST = 0.003825 EMBEDDING_COST = 0.02 / 1000000 # Assumes new ada-3-small def estimate_llm_cost(input_content: str, output_conten...
--- +++ @@ -1,3 +1,9 @@+"""Cost estimation utilities for LLM API usage. + +This module provides functions to estimate the cost of LLM API calls +based on token counts. Cost estimates are based on OpenAI pricing +and may vary for other model providers. +""" import tiktoken @@ -10,6 +16,17 @@ def estimate_llm_co...
https://raw.githubusercontent.com/assafelovic/gpt-researcher/HEAD/gpt_researcher/utils/costs.py
Help me comply with documentation standards
import os import requests import tempfile from urllib.parse import urlparse from langchain_community.document_loaders import PyMuPDFLoader class PyMuPDFScraper: def __init__(self, link, session=None): self.link = link self.session = session def is_url(self) -> bool: try: ...
--- +++ @@ -8,10 +8,23 @@ class PyMuPDFScraper: def __init__(self, link, session=None): + """ + Initialize the scraper with a link and an optional session. + + Args: + link (str): The URL or local file path of the PDF document. + session (requests.Session, optional): An opt...
https://raw.githubusercontent.com/assafelovic/gpt-researcher/HEAD/gpt_researcher/scraper/pymupdf/pymupdf.py
Document classes and their methods
from bs4 import BeautifulSoup import os from ..utils import get_relevant_images class FireCrawl: def __init__(self, link, session=None): self.link = link self.session = session from firecrawl import FirecrawlApp self.firecrawl = FirecrawlApp(api_key=self.get_api_key(), api_url=self...
--- +++ @@ -11,6 +11,11 @@ self.firecrawl = FirecrawlApp(api_key=self.get_api_key(), api_url=self.get_server_url()) def get_api_key(self) -> str: + """ + Gets the FireCrawl API key + Returns: + Api key (str) + """ try: api_key = os.environ["FIRECRA...
https://raw.githubusercontent.com/assafelovic/gpt-researcher/HEAD/gpt_researcher/scraper/firecrawl/firecrawl.py
Generate missing documentation strings
import asyncio import importlib import logging import subprocess import sys import requests from colorama import Fore, init from gpt_researcher.utils.workers import WorkerPool from . import ( ArxivScraper, BeautifulSoupScraper, BrowserScraper, FireCrawl, NoDriverScraper, PyMuPDFScraper, ...
--- +++ @@ -1,3 +1,8 @@+"""Web scraper module for GPT Researcher. + +This module provides the Scraper class that extracts content from URLs +using various scraping backends (BeautifulSoup, PyMuPDF, Browser, etc.). +""" import asyncio import importlib @@ -23,8 +28,16 @@ class Scraper: + """ + Scraper class...
https://raw.githubusercontent.com/assafelovic/gpt-researcher/HEAD/gpt_researcher/scraper/scraper.py
Include argument descriptions in docstrings
from langchain_community.document_loaders import PyMuPDFLoader from langchain_community.retrievers import ArxivRetriever def scrape_pdf_with_pymupdf(url) -> str: loader = PyMuPDFLoader(url) doc = loader.load() return str(doc) def scrape_pdf_with_arxiv(query) -> str: retriever = ArxivRetriever(load_m...
--- +++ @@ -3,12 +3,29 @@ def scrape_pdf_with_pymupdf(url) -> str: + """Scrape a pdf with pymupdf + + Args: + url (str): The url of the pdf to scrape + + Returns: + str: The text scraped from the pdf + """ loader = PyMuPDFLoader(url) doc = loader.load() return str(doc) ...
https://raw.githubusercontent.com/assafelovic/gpt-researcher/HEAD/gpt_researcher/scraper/browser/processing/scrape_skills.py
Add docstrings to meet PEP guidelines
from typing import List, Dict, Any, Optional, Set import asyncio import logging import time from datetime import datetime, timedelta from gpt_researcher.llm_provider.generic.base import ReasoningEfforts from ..utils.llm import create_chat_completion from ..utils.enum import ReportType, ReportSource, Tone from ..action...
--- +++ @@ -15,11 +15,13 @@ MAX_CONTEXT_WORDS = 25000 def count_words(text) -> int: + """Count words in a text string. Handles both strings and lists.""" if isinstance(text, list): text = " ".join(str(item) for item in text) return len(str(text).split()) def trim_context_to_word_limit(contex...
https://raw.githubusercontent.com/assafelovic/gpt-researcher/HEAD/gpt_researcher/skills/deep_research.py
Document classes and their methods
import asyncio from typing import Dict, List, Optional, Set from ..actions.utils import stream_output from ..context.compression import ( ContextCompressor, VectorstoreCompressor, WrittenContentCompressor, ) class ContextManager: def __init__(self, researcher): self.researcher = researcher ...
--- +++ @@ -1,3 +1,8 @@+"""Context manager skill for GPT Researcher. + +This module provides the ContextManager class that handles context +retrieval, compression, and similarity matching for research queries. +""" import asyncio from typing import Dict, List, Optional, Set @@ -11,11 +16,34 @@ class ContextMana...
https://raw.githubusercontent.com/assafelovic/gpt-researcher/HEAD/gpt_researcher/skills/context_manager.py
Add inline docstrings for readability
import json from typing import Dict, Optional from ..actions import ( generate_draft_section_titles, generate_report, stream_output, write_conclusion, write_report_introduction, ) from ..utils.llm import construct_subtopics class ReportGenerator: def __init__(self, researcher): self...
--- +++ @@ -1,3 +1,8 @@+"""Report generator skill for GPT Researcher. + +This module provides the ReportGenerator class that handles report +writing, including introductions, conclusions, and subtopic management. +""" import json from typing import Dict, Optional @@ -13,8 +18,22 @@ class ReportGenerator: + "...
https://raw.githubusercontent.com/assafelovic/gpt-researcher/HEAD/gpt_researcher/skills/writer.py
Document my Python code with docstrings
import hashlib import logging import re from urllib.parse import parse_qs, urljoin, urlparse import bs4 from bs4 import BeautifulSoup def get_relevant_images(soup: BeautifulSoup, url: str) -> list: image_urls = [] try: # Find all img tags with src attribute all_images = soup.find_all('i...
--- +++ @@ -1,3 +1,8 @@+"""Utility functions for web scraping. + +This module provides helper functions for extracting content, images, +and processing HTML from web pages. +""" import hashlib import logging @@ -9,6 +14,7 @@ def get_relevant_images(soup: BeautifulSoup, url: str) -> list: + """Extract relevan...
https://raw.githubusercontent.com/assafelovic/gpt-researcher/HEAD/gpt_researcher/scraper/utils.py
Add docstrings for better understanding
from gpt_researcher.utils.workers import WorkerPool from ..actions.utils import stream_output from ..actions.web_scraping import scrape_urls from ..scraper.utils import get_image_hash class BrowserManager: def __init__(self, researcher): self.researcher = researcher self.worker_pool = WorkerPoo...
--- +++ @@ -1,3 +1,8 @@+"""Browser manager skill for GPT Researcher. + +This module provides the BrowserManager class that handles web scraping +and content extraction from URLs. +""" from gpt_researcher.utils.workers import WorkerPool @@ -7,8 +12,22 @@ class BrowserManager: + """Manages web browsing and co...
https://raw.githubusercontent.com/assafelovic/gpt-researcher/HEAD/gpt_researcher/skills/browser.py
Generate helpful docstrings for debugging
from datetime import datetime import asyncio from typing import Dict, List, Optional from langgraph.graph import StateGraph, END from .utils.views import print_agent_output from .utils.llms import call_model from ..memory.draft import DraftState from . import ResearchAgent, ReviewerAgent, ReviserAgent class EditorA...
--- +++ @@ -11,6 +11,7 @@ class EditorAgent: + """Agent responsible for editing and managing code.""" def __init__(self, websocket=None, stream_output=None, tone=None, headers=None): self.websocket = websocket @@ -19,6 +20,12 @@ self.headers = headers or {} async def plan_research(...
https://raw.githubusercontent.com/assafelovic/gpt-researcher/HEAD/multi_agents/agents/editor.py
Provide clean and structured docstrings
import asyncio import logging import os import random from ..actions.agent_creator import choose_agent from ..actions.query_processing import get_search_results, plan_research_outline from ..actions.utils import stream_output from ..document import DocumentLoader, LangChainDocumentLoader, OnlineDocumentLoader from .....
--- +++ @@ -1,3 +1,9 @@+"""Research conductor skill for GPT Researcher. + +This module provides the ResearchConductor class that manages and +coordinates the research process including query planning, web searching, +and context gathering. +""" import asyncio import logging @@ -13,8 +19,24 @@ class ResearchCond...
https://raw.githubusercontent.com/assafelovic/gpt-researcher/HEAD/gpt_researcher/skills/researcher.py
Write reusable docstrings
from typing import List, Dict from langchain_core.documents import Document from langchain_community.vectorstores import VectorStore from langchain_text_splitters import RecursiveCharacterTextSplitter class VectorStoreWrapper: def __init__(self, vector_store : VectorStore): self.vector_store = vector_stor...
--- +++ @@ -1,3 +1,6 @@+""" +Wrapper for langchain vector store +""" from typing import List, Dict from langchain_core.documents import Document @@ -5,18 +8,29 @@ from langchain_text_splitters import RecursiveCharacterTextSplitter class VectorStoreWrapper: + """ + A Wrapper for LangchainVectorStore to hand...
https://raw.githubusercontent.com/assafelovic/gpt-researcher/HEAD/gpt_researcher/vector_store/vector_store.py
Generate missing documentation strings
import os import time import datetime from langgraph.graph import StateGraph, END # from langgraph.checkpoint.memory import MemorySaver from .utils.views import print_agent_output from ..memory.research import ResearchState from .utils.utils import sanitize_filename # Import agent classes from . import \ WriterAge...
--- +++ @@ -17,6 +17,7 @@ class ChiefEditorAgent: + """Agent responsible for managing and coordinating editing tasks.""" def __init__(self, task: dict, websocket=None, stream_output=None, tone=None, headers=None): self.task = task @@ -80,6 +81,7 @@ ) def init_research_team(self): +...
https://raw.githubusercontent.com/assafelovic/gpt-researcher/HEAD/multi_agents/agents/orchestrator.py
Can you add docstrings to this Python file?
from __future__ import annotations import logging import os from typing import Any import asyncio from langchain_core.output_parsers import PydanticOutputParser from langchain_core.prompts import PromptTemplate from gpt_researcher.llm_provider.generic.base import ( NO_SUPPORT_TEMPERATURE_MODELS, SUPPORT_REAS...
--- +++ @@ -1,3 +1,8 @@+"""LLM utilities for GPT Researcher. + +This module provides utility functions for interacting with various +LLM providers through a unified interface. +""" from __future__ import annotations import logging @@ -20,6 +25,15 @@ def get_llm(llm_provider: str, **kwargs): + """Get an LLM p...
https://raw.githubusercontent.com/assafelovic/gpt-researcher/HEAD/gpt_researcher/utils/llm.py
Add docstrings including usage examples
import aiofiles import urllib import uuid import mistune import os async def write_to_file(filename: str, text: str) -> None: # Ensure text is a string if not isinstance(text, str): text = str(text) # Convert text to UTF-8, replacing any problematic characters text_utf8 = text.encode('utf-8', ...
--- +++ @@ -5,6 +5,12 @@ import os async def write_to_file(filename: str, text: str) -> None: + """Asynchronously write text to a file in UTF-8 encoding. + + Args: + filename (str): The filename to write to. + text (str): The text to write. + """ # Ensure text is a string if not isin...
https://raw.githubusercontent.com/assafelovic/gpt-researcher/HEAD/multi_agents/agents/utils/file_formats.py
Add professional docstrings to my codebase
import asyncio import time from concurrent.futures import ThreadPoolExecutor from contextlib import asynccontextmanager from .rate_limiter import get_global_rate_limiter class WorkerPool: def __init__(self, max_workers: int, rate_limit_delay: float = 0.0): self.max_workers = max_workers self.rate_...
--- +++ @@ -7,6 +7,21 @@ class WorkerPool: def __init__(self, max_workers: int, rate_limit_delay: float = 0.0): + """ + Initialize WorkerPool with concurrency and rate limiting. + + Args: + max_workers: Maximum number of concurrent workers + rate_limit_delay: Minimum se...
https://raw.githubusercontent.com/assafelovic/gpt-researcher/HEAD/gpt_researcher/utils/workers.py
Add structured docstrings to improve clarity
import asyncio import time from typing import ClassVar class GlobalRateLimiter: _instance: ClassVar['GlobalRateLimiter'] = None _lock: ClassVar[asyncio.Lock] = None def __new__(cls): if cls._instance is None: cls._instance = super().__new__(cls) cls._instance._initialized...
--- +++ @@ -1,9 +1,22 @@+""" +Global rate limiter for scraper requests. + +Ensures that SCRAPER_RATE_LIMIT_DELAY is enforced globally across ALL WorkerPools, +not just per-pool. This prevents multiple concurrent researchers from overwhelming +rate-limited APIs like Firecrawl. +""" import asyncio import time from typ...
https://raw.githubusercontent.com/assafelovic/gpt-researcher/HEAD/gpt_researcher/utils/rate_limiter.py
Add documentation for all methods
from bs4 import BeautifulSoup import os from ..utils import get_relevant_images, extract_title class TavilyExtract: def __init__(self, link, session=None): self.link = link self.session = session from tavily import TavilyClient self.tavily_client = TavilyClient(api_key=self.get_api...
--- +++ @@ -11,6 +11,11 @@ self.tavily_client = TavilyClient(api_key=self.get_api_key()) def get_api_key(self) -> str: + """ + Gets the Tavily API key + Returns: + Api key (str) + """ try: api_key = os.environ["TAVILY_API_KEY"] except KeyE...
https://raw.githubusercontent.com/assafelovic/gpt-researcher/HEAD/gpt_researcher/scraper/tavily_extract/tavily_extract.py
Create docstrings for reusable components
import argparse import json import os import stat import sys import time from pathlib import Path # --------------------------------------------------------------------------- # Imports from the 007 config hub (same directory) # --------------------------------------------------------------------------- sys.path.inse...
--- +++ @@ -1,3 +1,13 @@+"""007 Quick Scan -- Fast automated security scan of a target directory. + +Recursively scans files in a target directory for secret patterns, dangerous +code constructs, permission issues, and oversized files. Produces a scored +summary report in text or JSON format. + +Usage: + python qui...
https://raw.githubusercontent.com/sickn33/antigravity-awesome-skills/HEAD/skills/007/scripts/quick_scan.py
Help me add docstrings to my project
import argparse import base64 import json import re import sys import time from datetime import datetime from pathlib import Path sys.path.insert(0, str(Path(__file__).parent)) from config import ( MODELS, DEFAULT_MODEL, DEFAULT_FORMAT, DEFAULT_HUMANIZATION, DEFAULT_MODE, DEFAULT_RESOLUTION, ...
--- +++ @@ -1,3 +1,10 @@+""" +AI Studio Image — Gerador de Imagens (v2 — Enhanced) + +Script principal que conecta com Google AI Studio (Gemini/Imagen) +para gerar imagens humanizadas. Suporta todos os modelos oficiais, +fallback automatico de API keys, e metadados completos. +""" import argparse import base64 @@ -...
https://raw.githubusercontent.com/sickn33/antigravity-awesome-skills/HEAD/skills/ai-studio-image/scripts/generate.py
Document all endpoints with docstrings
import json import logging import re from datetime import datetime, timezone from pathlib import Path # --------------------------------------------------------------------------- # Directory Layout # --------------------------------------------------------------------------- # All paths use pathlib for Windows / Li...
--- +++ @@ -1,3 +1,21 @@+""" +007 Security Skill - Central Configuration Hub +================================================ + +Central configuration for all 007 security scanners, analyzers, and reporting +tools. Every script in the 007 ecosystem imports from here to ensure consistent +behavior, scoring, severity le...
https://raw.githubusercontent.com/sickn33/antigravity-awesome-skills/HEAD/skills/007/scripts/config.py
Document all public functions with docstrings
from __future__ import annotations import logging import re from typing import List import httpx from bs4 import BeautifulSoup from .base_scraper import AbstractJuntaScraper, Leiloeiro logger = logging.getLogger(__name__) RE_MATRICULA = re.compile(r"[Mm]atr[íi]cula\s+N[º°o]?\s*(\d+(?:/\d+)?)\s*[–\-]\s*[Ee]m:\s*(\d...
--- +++ @@ -1,3 +1,16 @@+""" +Scraper JUCEMA — Junta Comercial do Estado do Maranhao +URL: https://portal.jucema.ma.gov.br/ (React SPA - dados via REST API) +Metodo: httpx GET para API REST do CMS +Mecanismo real descoberto em 2026-02-25: + - Portal e React SPA (Create React App), sem conteudo server-side + - API bas...
https://raw.githubusercontent.com/sickn33/antigravity-awesome-skills/HEAD/skills/junta-leiloeiros/scripts/scraper/jucema.py
Provide docstrings following PEP 257
import os import json import re import sys import yaml from _project_paths import find_repo_root # Ensure UTF-8 output for Windows compatibility if sys.platform == 'win32': import io sys.stdout = io.TextIOWrapper(sys.stdout.buffer, encoding='utf-8') sys.stderr = io.TextIOWrapper(sys.stderr.buffer, encodin...
--- +++ @@ -74,6 +74,7 @@ def normalize_category(value): + """Normalize category values to lowercase kebab-case.""" if value is None: return None text = str(value).strip().lower() @@ -87,6 +88,11 @@ def infer_dynamic_category(skill_id): + """ + Infer a category dynamically from skill...
https://raw.githubusercontent.com/sickn33/antigravity-awesome-skills/HEAD/skill_categorization/tools/scripts/generate_index.py
Document this code for team use
#!/usr/bin/env python3 import os import sys import json import hashlib import re from pathlib import Path from datetime import datetime # ── Configuration ────────────────────────────────────────────────────────── # Resolve paths relative to this script's location _SCRIPT_DIR = Path(__file__).resolve().parent ORCHES...
--- +++ @@ -1,4 +1,21 @@ #!/usr/bin/env python3 +""" +Auto-Discovery Engine for Agent Orchestrator. + +Scans the skills ecosystem for SKILL.md files, parses metadata, +and maintains a centralized registry (registry.json). + +Features: +- Runs automatically on every request (called by CLAUDE.md) +- Ultra-fast via MD5 ha...
https://raw.githubusercontent.com/sickn33/antigravity-awesome-skills/HEAD/skills/agent-orchestrator/scripts/scan_registry.py
Add docstrings with type hints explained
from typing import Dict, List, Any, Optional class ASOScorer: # Score weights for different components (total = 100) WEIGHTS = { 'metadata_quality': 25, 'ratings_reviews': 25, 'keyword_performance': 25, 'conversion_metrics': 25 } # Benchmarks for scoring BENCHMAR...
--- +++ @@ -1,8 +1,13 @@+""" +ASO scoring module for App Store Optimization. +Calculates comprehensive ASO health score across multiple dimensions. +""" from typing import Dict, List, Any, Optional class ASOScorer: + """Calculates overall ASO health score and provides recommendations.""" # Score weigh...
https://raw.githubusercontent.com/sickn33/antigravity-awesome-skills/HEAD/skills/app-store-optimization/aso_scorer.py
Generate descriptive docstrings automatically
import argparse import json import os import re import sys import time from pathlib import Path # --------------------------------------------------------------------------- # Import from the 007 config hub (parent directory) # --------------------------------------------------------------------------- sys.path.inser...
--- +++ @@ -1,3 +1,16 @@+"""007 Injection Scanner -- Specialized scanner for injection vulnerabilities. + +Detects code injection, SQL injection, command injection, prompt injection, +XSS, SSRF, and path traversal patterns across Python, JavaScript/Node.js, +and shell codebases. Performs context-aware analysis to redu...
https://raw.githubusercontent.com/sickn33/antigravity-awesome-skills/HEAD/skills/007/scripts/scanners/injection_scanner.py
Add docstrings for internal functions
from typing import Dict, List, Any, Optional, Tuple class LocalizationHelper: # Priority markets by language (based on app store revenue and user base) PRIORITY_MARKETS = { 'tier_1': [ {'language': 'en-US', 'market': 'United States', 'revenue_share': 0.25}, {'language': 'zh-C...
--- +++ @@ -1,8 +1,13 @@+""" +Localization helper module for App Store Optimization. +Manages multi-language ASO optimization strategies. +""" from typing import Dict, List, Any, Optional, Tuple class LocalizationHelper: + """Helps manage multi-language ASO optimization.""" # Priority markets by langu...
https://raw.githubusercontent.com/sickn33/antigravity-awesome-skills/HEAD/skills/app-store-optimization/localization_helper.py
Add docstrings that explain logic
import shutil from datetime import datetime from pathlib import Path from config import ( ACTIVE_CONTEXT_PATH, MEMORY_DIR, MEMORY_MD_PATH, MAX_ACTIVE_CONTEXT_LINES, ) from models import ActiveContext, SessionSummary, ProjectInfo, PendingTask def load_active_context() -> ActiveContext: if not ACT...
--- +++ @@ -1,3 +1,7 @@+""" +Gerencia o ACTIVE_CONTEXT.md — arquivo que é sincronizado com MEMORY.md. +Limite rígido de ~150 linhas para caber no system prompt. +""" import shutil from datetime import datetime @@ -13,6 +17,7 @@ def load_active_context() -> ActiveContext: + """Carrega o contexto ativo do arqu...
https://raw.githubusercontent.com/sickn33/antigravity-awesome-skills/HEAD/skills/context-agent/scripts/active_context.py
Add professional docstrings to my codebase
import argparse import json import sys from pathlib import Path sys.path.insert(0, str(Path(__file__).parent)) # ============================================================================= # TEMPLATES — MODO INFLUENCER # ============================================================================= INFLUENCER_TEMP...
--- +++ @@ -1,3 +1,16 @@+""" +AI Studio Image — Templates Pre-configurados + +Biblioteca de templates prontos para cenarios comuns de geracao de imagens. +Cada template inclui um prompt base, configuracoes ideais e contexto +adicional para o motor de humanizacao. + +Uso: + python templates.py --list ...
https://raw.githubusercontent.com/sickn33/antigravity-awesome-skills/HEAD/skills/ai-studio-image/scripts/templates.py
Insert docstrings into my code
#!/usr/bin/env python3 import json import socket import ssl import subprocess import sys import time from datetime import datetime try: import psutil except ImportError: subprocess.check_call([sys.executable, "-m", "pip", "install", "psutil", "--quiet"]) import psutil ENDPOINTS = [ {"name": "Claude ...
--- +++ @@ -1,4 +1,16 @@ #!/usr/bin/env python3 +""" +Claude Monitor — Benchmark de Conectividade API + +Testa latência e conectividade com a API do Claude. +Não faz chamadas à API (não precisa de API key). +Apenas verifica se a rede está funcionando e se o endpoint responde. + +Uso: + python api_bench.py ...
https://raw.githubusercontent.com/sickn33/antigravity-awesome-skills/HEAD/skills/claude-monitor/scripts/api_bench.py
Create docstrings for each class method
#!/usr/bin/env python3 import sys import re import json from pathlib import Path # Fix Windows console encoding try: sys.stdout.reconfigure(encoding='utf-8', errors='replace') sys.stderr.reconfigure(encoding='utf-8', errors='replace') except AttributeError: pass # Directories to skip (not public content)...
--- +++ @@ -1,4 +1,21 @@ #!/usr/bin/env python3 +""" +GEO Checker - Generative Engine Optimization Audit +Checks PUBLIC WEB CONTENT for AI citation readiness. + +PURPOSE: + - Analyze pages that will be INDEXED by AI engines (ChatGPT, Perplexity, etc.) + - Check for structured data, author info, dates, FAQ section...
https://raw.githubusercontent.com/sickn33/antigravity-awesome-skills/HEAD/skills/geo-fundamentals/scripts/geo_checker.py
Please document this code using docstrings
#!/usr/bin/env python3 import os import sys import json import subprocess import shutil from datetime import datetime from pathlib import Path # Rich for beautiful terminal output try: from rich.console import Console from rich.prompt import Prompt from rich.panel import Panel from rich.progress impor...
--- +++ @@ -1,4 +1,8 @@ #!/usr/bin/env python3 +""" +Audio Transcriber v1.1.0 +Transcreve áudio para texto e gera atas/resumos usando LLM. +""" import os import sys @@ -74,6 +78,7 @@ def detect_cli_tool(): + """Detecta qual CLI de LLM está disponível (claude > gh copilot).""" if shutil.which('claude'): ...
https://raw.githubusercontent.com/sickn33/antigravity-awesome-skills/HEAD/skills/audio-transcriber/scripts/transcribe.py
Include argument descriptions in docstrings
from __future__ import annotations import asyncio import json import logging import sys from pathlib import Path from typing import Any, Dict, List, Optional sys.path.insert(0, str(Path(__file__).parent)) import httpx from config import ( GRAPH_API_BASE, IMGUR_CLIENT_ID, IMGUR_UPLOAD_URL, MAX_RETRIE...
--- +++ @@ -1,3 +1,14 @@+""" +Cliente da Instagram Graph API com retry, rate limiting e logging integrados. + +Uso: + from api_client import InstagramAPI + + api = InstagramAPI() + profile = await api.get_user_profile() + media = await api.get_user_media(limit=10) + await api.close() +""" from __future_...
https://raw.githubusercontent.com/sickn33/antigravity-awesome-skills/HEAD/skills/instagram/scripts/api_client.py
Write beginner-friendly docstrings
from typing import Dict, List, Any, Optional, Tuple import re class MetadataOptimizer: # Platform-specific character limits CHAR_LIMITS = { 'apple': { 'title': 30, 'subtitle': 30, 'promotional_text': 170, 'description': 4000, 'keywords': 10...
--- +++ @@ -1,9 +1,14 @@+""" +Metadata optimization module for App Store Optimization. +Optimizes titles, descriptions, and keyword fields with platform-specific character limit validation. +""" from typing import Dict, List, Any, Optional, Tuple import re class MetadataOptimizer: + """Optimizes app store m...
https://raw.githubusercontent.com/sickn33/antigravity-awesome-skills/HEAD/skills/app-store-optimization/metadata_optimizer.py
Add docstrings for production code
from pathlib import Path import os # ============================================================================= # PATHS # ============================================================================= ROOT_DIR = Path(__file__).resolve().parent.parent SCRIPTS_DIR = ROOT_DIR / "scripts" DATA_DIR = ROOT_DIR / "data" ...
--- +++ @@ -1,3 +1,9 @@+""" +AI Studio Image — Configuracao Central (v2 — Enhanced with Official Docs) + +Todas as constantes, paths, modelos, formatos, tecnicas e configuracoes +baseadas na documentacao oficial do Google AI Studio (Fev 2026). +""" from pathlib import Path import os @@ -20,6 +26,13 @@ # ===========...
https://raw.githubusercontent.com/sickn33/antigravity-awesome-skills/HEAD/skills/ai-studio-image/scripts/config.py
Generate consistent documentation across files
from pathlib import Path from config import SESSIONS_DIR, MAX_RECENT_SESSIONS from models import SessionSummary from active_context import load_active_context, ACTIVE_CONTEXT_PATH from project_registry import load_registry, PROJECT_REGISTRY_PATH from compressor import get_archive_summary def generate_briefing() -> ...
--- +++ @@ -1,3 +1,7 @@+""" +Carrega contexto no início de uma nova sessão. +Gera briefings de diferentes níveis de detalhe. +""" from pathlib import Path @@ -9,6 +13,7 @@ def generate_briefing() -> str: + """Gera briefing completo para início de sessão.""" sections = [] # 1. Cabeçalho @@ -90,6 ...
https://raw.githubusercontent.com/sickn33/antigravity-awesome-skills/HEAD/skills/context-agent/scripts/context_loader.py
Write docstrings describing functionality
#!/usr/bin/env python3 import os import sys import json import glob from pathlib import Path from datetime import datetime def get_tree(path, prefix="", max_depth=3, current_depth=0): if current_depth >= max_depth: return [] try: entries = sorted(os.listdir(path)) except PermissionError: ...
--- +++ @@ -1,4 +1,14 @@ #!/usr/bin/env python3 +""" +AI Agent Context Preparer v2 +Usage: python prepare_context.py [directory_path] +Generates a standardized AGENT_CONTEXT.md with 5 core sections: + 1. 專案目標 (Project Goal) - from README + 2. 技術棧與環境 (Tech Stack) - from config files + 3. 核心目錄結構 (Core Structure) - rec...
https://raw.githubusercontent.com/sickn33/antigravity-awesome-skills/HEAD/skills/diary/scripts/prepare_context.py
Add missing documentation to my Python functions
#!/usr/bin/env python3 import re from typing import Dict, List, Tuple import json class BrandVoiceAnalyzer: def __init__(self): self.voice_dimensions = { 'formality': { 'formal': ['hereby', 'therefore', 'furthermore', 'pursuant', 'regarding'], 'casual': ['hey', ...
--- +++ @@ -1,4 +1,7 @@ #!/usr/bin/env python3 +""" +Brand Voice Analyzer - Analyzes content to establish and maintain brand voice consistency +""" import re from typing import Dict, List, Tuple @@ -22,6 +25,7 @@ } def analyze_text(self, text: str) -> Dict: + """Analyze text for brand voic...
https://raw.githubusercontent.com/sickn33/antigravity-awesome-skills/HEAD/skills/content-creator/scripts/brand_voice_analyzer.py
Add docstrings that explain purpose and usage
from typing import Dict, List, Any, Optional from datetime import datetime, timedelta class LaunchChecklistGenerator: def __init__(self, platform: str = 'both'): if platform not in ['apple', 'google', 'both']: raise ValueError("Platform must be 'apple', 'google', or 'both'") self.pl...
--- +++ @@ -1,11 +1,22 @@+""" +Launch checklist module for App Store Optimization. +Generates comprehensive pre-launch and update checklists. +""" from typing import Dict, List, Any, Optional from datetime import datetime, timedelta class LaunchChecklistGenerator: + """Generates comprehensive checklists for...
https://raw.githubusercontent.com/sickn33/antigravity-awesome-skills/HEAD/skills/app-store-optimization/launch_checklist.py
Generate docstrings for exported functions
#!/usr/bin/env python3 import json import sys import os import re import subprocess from pathlib import Path # ── Configuration ────────────────────────────────────────────────────────── # Resolve paths relative to this script's location _SCRIPT_DIR = Path(__file__).resolve().parent ORCHESTRATOR_DIR = _SCRIPT_DIR.pa...
--- +++ @@ -1,4 +1,22 @@ #!/usr/bin/env python3 +""" +Skill Matching Algorithm for Agent Orchestrator. + +Scores and ranks skills against a user query to determine +which agents are relevant for the current request. + +Scoring: +- Skill name appears in query: +15 +- Exact trigger keyword match: +10 per keyword +- Capab...
https://raw.githubusercontent.com/sickn33/antigravity-awesome-skills/HEAD/skills/agent-orchestrator/scripts/match_skills.py
Improve my code by adding docstrings
from __future__ import annotations import argparse import asyncio import json import logging import sys from datetime import datetime, timezone from pathlib import Path sys.path.insert(0, str(Path(__file__).parent)) from api_client import InstagramAPI from auth import auto_refresh_if_needed from db import Database ...
--- +++ @@ -1,3 +1,13 @@+""" +Sync completo: busca perfil, mídia, insights e comentários do Instagram. + +Uso: + python scripts/run_all.py # Sync completo + python scripts/run_all.py --only media # Só mídia + python scripts/run_all.py --only insights # Só insights + python script...
https://raw.githubusercontent.com/sickn33/antigravity-awesome-skills/HEAD/skills/instagram/scripts/run_all.py
Add structured docstrings to improve clarity
from __future__ import annotations import argparse import asyncio import json import os import sys import webbrowser from datetime import datetime, timedelta, timezone from http.server import HTTPServer, BaseHTTPRequestHandler from pathlib import Path from typing import Optional from urllib.parse import parse_qs, urlp...
--- +++ @@ -1,3 +1,20 @@+""" +Autenticação OAuth 2.0 para Instagram Graph API. + +Uso: + python scripts/auth.py --setup # Configuração inicial completa + python scripts/auth.py --refresh # Renovar token + python scripts/auth.py --status # Ver status do token + pytho...
https://raw.githubusercontent.com/sickn33/antigravity-awesome-skills/HEAD/skills/instagram/scripts/auth.py
Help me add docstrings to my project
import argparse import json import os import re import sys import time from pathlib import Path # --------------------------------------------------------------------------- # Import from the 007 config hub (parent directory) # --------------------------------------------------------------------------- sys.path.inser...
--- +++ @@ -1,3 +1,13 @@+"""007 Dependency Scanner -- Supply chain and dependency security analyzer. + +Analyzes dependency security across Python and Node.js projects by inspecting +dependency files (requirements.txt, package.json, Dockerfiles, etc.) for version +pinning, known risky patterns, and supply chain best pr...
https://raw.githubusercontent.com/sickn33/antigravity-awesome-skills/HEAD/skills/007/scripts/scanners/dependency_scanner.py
Generate docstrings for each module
#!/usr/bin/env python3 import json import sys from pathlib import Path # ── Configuration ────────────────────────────────────────────────────────── # Resolve paths relative to this script's location _SCRIPT_DIR = Path(__file__).resolve().parent ORCHESTRATOR_DIR = _SCRIPT_DIR.parent SKILLS_ROOT = ORCHESTRATOR_DIR.pa...
--- +++ @@ -1,4 +1,20 @@ #!/usr/bin/env python3 +""" +Multi-Skill Orchestration Engine for Agent Orchestrator. + +Given matched skills and a query, determines the orchestration pattern +and generates an execution plan for Claude to follow. + +Patterns: +- single: One skill handles the entire request +- sequent...
https://raw.githubusercontent.com/sickn33/antigravity-awesome-skills/HEAD/skills/agent-orchestrator/scripts/orchestrate.py
Add professional docstrings to my codebase
from __future__ import annotations import json import sqlite3 from pathlib import Path from typing import Any, Dict, List, Optional # Caminho padrão do banco — relativo ao diretório pai de scripts/ _DEFAULT_DB = Path(__file__).parent.parent / "data" / "leiloeiros.db" DDL = """ CREATE TABLE IF NOT EXISTS leiloeiros (...
--- +++ @@ -1,3 +1,15 @@+""" +Camada de persistência SQLite para dados de leiloeiros das Juntas Comerciais. + +Uso: + from db import Database + db = Database() # abre/cria o banco em data/leiloeiros.db + db.init() # cria tabelas se não existirem + db.upsert_many(records) # insere...
https://raw.githubusercontent.com/sickn33/antigravity-awesome-skills/HEAD/skills/junta-leiloeiros/scripts/db.py
Add verbose docstrings with examples
import argparse import base64 import json import math import os import re import sys import time from pathlib import Path # --------------------------------------------------------------------------- # Import from the 007 config hub (parent directory) # ----------------------------------------------------------------...
--- +++ @@ -1,3 +1,14 @@+"""007 Secrets Scanner -- Deep scanner for secrets and credentials. + +Goes deeper than quick_scan by performing entropy analysis, base64 detection, +context-aware false positive reduction, and targeted scanning of sensitive +file types (.env, config files, shell scripts, Docker, CI/CD). + +Usa...
https://raw.githubusercontent.com/sickn33/antigravity-awesome-skills/HEAD/skills/007/scripts/scanners/secrets_scanner.py
Write Python docstrings for this snippet
#!/usr/bin/env python3 import os import sys import re import json import requests from datetime import datetime from pathlib import Path # ── Configuration ────────────────────────────────────────────── NOTION_TOKEN = os.environ.get("NOTION_TOKEN", "") NOTION_DIARY_DB = os.environ.get("NOTION_DIARY_DB", "") NOTION_AP...
--- +++ @@ -1,4 +1,17 @@ #!/usr/bin/env python3 +""" +Notion Diary Sync Script +同步 diary-agent 的開發日記到 Notion「每日複盤」頁面的 Business 區塊。 +頁面結構(其他生活區塊)由 GAS Agent 建立,本腳本僅負責推送開發日記。 + +使用方式: + python sync_to_notion.py <diary_file_path> + python sync_to_notion.py --create-db <parent_page_id> + +環境變數: + NOTION_TOKEN - Not...
https://raw.githubusercontent.com/sickn33/antigravity-awesome-skills/HEAD/skills/diary/scripts/sync_to_notion.py
Replace inline comments with docstrings
import argparse import json import os import re import sys import time from datetime import datetime, timezone from pathlib import Path # --------------------------------------------------------------------------- # Imports from the 007 config hub (same directory) # ---------------------------------------------------...
--- +++ @@ -1,3 +1,22 @@+"""007 Full Audit -- Comprehensive 6-phase security audit orchestrator. + +Executes the complete 007 security audit pipeline: + Phase 1: Surface Mapping -- file inventory, entry points, dependencies + Phase 2: Threat Modeling Hints -- identify components for STRIDE analysis + Phase 3: S...
https://raw.githubusercontent.com/sickn33/antigravity-awesome-skills/HEAD/skills/007/scripts/full_audit.py
Add professional docstrings to my codebase
from __future__ import annotations import argparse import asyncio import json import sys from pathlib import Path sys.path.insert(0, str(Path(__file__).parent)) from api_client import InstagramAPI from auth import auto_refresh_if_needed async def view_profile(as_json: bool = False) -> None: await auto_refresh_...
--- +++ @@ -1,3 +1,10 @@+""" +Visualização e gestão do perfil Instagram. + +Uso: + python scripts/profile.py --view # Ver perfil completo + python scripts/profile.py --json # Saída JSON +""" from __future__ import annotations import argparse @@ -13,6 +20,7 @@ async def view_profile(as_json: bool =...
https://raw.githubusercontent.com/sickn33/antigravity-awesome-skills/HEAD/skills/instagram/scripts/profile.py
Document helper functions with docstrings
import re from datetime import datetime from pathlib import Path from config import ( SESSIONS_DIR, DECISION_MARKERS, PENDING_MARKERS, ) from models import SessionSummary, PendingTask, SessionEntry def get_next_session_number() -> int: SESSIONS_DIR.mkdir(parents=True, exist_ok=True) existing = l...
--- +++ @@ -1,3 +1,7 @@+""" +Gerador de resumos estruturados de sessão. +Analisa mensagens e gera session-NNN.md. +""" import re from datetime import datetime @@ -12,6 +16,7 @@ def get_next_session_number() -> int: + """Retorna o próximo número de sessão disponível.""" SESSIONS_DIR.mkdir(parents=True, e...
https://raw.githubusercontent.com/sickn33/antigravity-awesome-skills/HEAD/skills/context-agent/scripts/session_summary.py
Add missing documentation to my Python functions
from __future__ import annotations import argparse import json import sys from pathlib import Path sys.path.insert(0, str(Path(__file__).parent)) from db import Database db = Database() db.init() def create_template(name: str, caption: str, hashtags: str = None, schedule_time: str = None) -> None: hashtag_lis...
--- +++ @@ -1,3 +1,13 @@+""" +Templates reutilizáveis de conteúdo para Instagram. + +Uso: + python scripts/templates.py --create --name "promo" --caption "Oferta: {produto}! {desconto}% OFF" --hashtags "#oferta,#promo" + python scripts/templates.py --list + python scripts/templates.py --show --name promo + ...
https://raw.githubusercontent.com/sickn33/antigravity-awesome-skills/HEAD/skills/instagram/scripts/templates.py
Generate docstrings for this script
#!/usr/bin/env python3 import json import os import sys from pptx import Presentation def extract_pptx(file_path, output_dir="."): prs = Presentation(file_path) slides_data = [] # Create assets directory for extracted images assets_dir = os.path.join(output_dir, "assets") os.makedirs(assets_dir,...
--- +++ @@ -1,4 +1,13 @@ #!/usr/bin/env python3 +""" +Extract all content from a PowerPoint file (.pptx). +Returns a JSON structure with slides, text, and images. + +Usage: + python extract-pptx.py <input.pptx> [output_dir] + +Requires: pip install python-pptx +""" import json import os @@ -7,6 +16,10 @@ def...
https://raw.githubusercontent.com/sickn33/antigravity-awesome-skills/HEAD/skills/frontend-slides/scripts/extract-pptx.py
Add docstrings for utility scripts
from __future__ import annotations import json import sqlite3 from datetime import datetime, timezone from pathlib import Path from typing import Any, Dict, List, Optional from config import DB_PATH DDL = """ -- Contas Instagram (multi-conta ready) CREATE TABLE IF NOT EXISTS accounts ( id INTEGER ...
--- +++ @@ -1,3 +1,14 @@+""" +Camada de persistência SQLite para a skill Instagram. + +Uso: + from db import Database + db = Database() + db.init() + db.upsert_account({...}) + db.insert_post({...}) + stats = db.get_stats() +""" from __future__ import annotations import json @@ -143,12 +154,14 @@ ...
https://raw.githubusercontent.com/sickn33/antigravity-awesome-skills/HEAD/skills/instagram/scripts/db.py
Add docstrings for utility scripts
from __future__ import annotations import argparse import asyncio import json import sys from pathlib import Path sys.path.insert(0, str(Path(__file__).parent)) from api_client import InstagramAPI from auth import auto_refresh_if_needed from db import Database from governance import GovernanceManager, RateLimitExcee...
--- +++ @@ -1,3 +1,11 @@+""" +Orquestrador de publicação: processa posts approved/scheduled. + +Uso: + python scripts/schedule.py --process # Publica posts prontos + python scripts/schedule.py --list # Lista posts pendentes + python scripts/schedule.py --cancel --id 5 # Cancela agend...
https://raw.githubusercontent.com/sickn33/antigravity-awesome-skills/HEAD/skills/instagram/scripts/schedule.py
Document functions with detailed explanations
from typing import Dict, List, Any, Optional, Tuple from collections import Counter import re class ReviewAnalyzer: # Sentiment keywords POSITIVE_KEYWORDS = [ 'great', 'awesome', 'excellent', 'amazing', 'love', 'best', 'perfect', 'fantastic', 'wonderful', 'brilliant', 'outstanding', 'superb'...
--- +++ @@ -1,3 +1,7 @@+""" +Review analysis module for App Store Optimization. +Analyzes user reviews for sentiment, issues, and feature requests. +""" from typing import Dict, List, Any, Optional, Tuple from collections import Counter @@ -5,6 +9,7 @@ class ReviewAnalyzer: + """Analyzes user reviews for act...
https://raw.githubusercontent.com/sickn33/antigravity-awesome-skills/HEAD/skills/app-store-optimization/review_analyzer.py
Insert docstrings into my code
import argparse import json import os import re import sys import time from pathlib import Path # --------------------------------------------------------------------------- # Imports from the 007 config hub (same directory) # --------------------------------------------------------------------------- sys.path.insert...
--- +++ @@ -1,3 +1,20 @@+"""007 Score Calculator -- Unified security scoring engine. + +Aggregates results from all scanners (secrets, dependency, injection, quick_scan) +into a unified, per-domain security score with a weighted final verdict. + +The score covers 8 security domains as defined in config.SCORING_WEIGHTS:...
https://raw.githubusercontent.com/sickn33/antigravity-awesome-skills/HEAD/skills/007/scripts/score_calculator.py