RMAzrim
- 125 skills
- 0 followers
- 6 hours ago last updated
- ▌ Agent Self Debugger Loop · rmazrimA Python CLI (self_debug.py) that parses pytest stderr/stdout tracebacks, extracts the failing File x.py line N location, reads and rewrites that file via an ast.NodeTransformer to inject sys._getframe()-based log probes and None/missing-attribute guards, re-runs pytest up to 4 attempts, and rolls back via git stash on exhaustion. Pure stdlib (ast, re, subprocess, tempfile, pathlib) plus pytest.
- ▌ Data Structure Optimizer · rmazrimAnalyze algorithm time/space complexity (Big O) and refactor logic using optimal data structures (Heaps, Tries, Hash Maps).
- ▌ Git Bisect Time Traveler · rmazrimAutomates regression tracking by orchestrating non-interactive git bisect sessions wrapped around a headless test harness, parses the first-bad-commit SHA, subject and date plus the number of commits examined, and generates a minimal git-apply-compatible revert patch for exactly the files the offending commit touched, with optional dry-run verification.
- ▌ Github Actions Generator · rmazrimDesign automated CI/CD workflows for testing, building, and deployment.
- ▌ Golden Snapshot Migrator · rmazrimCapture golden snapshots before a major library or dependency migration and diff after to keep the external behavior contract intact.
- ▌ LLM Gateway Model Router · rmazrimOpenAI-compatible /v1/chat/completions gateway built on http.server + sqlite3 with weighted round-robin routing, failover on provider errors, token budget/quota enforcement, and response caching. Ships with an in-process MockLLMBackend for fully offline demos. Pure stdlib Python 3.9+, zero installs, zero MCP.
- ▌ Monorepo Package Cleaner · rmazrimAudit a monorepo workspace for dependency cycles, mismatched shared versions, and cross-boundary imports, then emit a prioritized cleanup plan.
- ▌ Terraform Module Builder · rmazrimDraft modular, reusable Infrastructure-as-Code Terraform modules for cloud infrastructure.
- ▌ Vector DB Hybrid Search Indexer · rmazrimA dependency-light Python module (hybrid_index.py) implementing a self-contained BM25 sparse scorer, a cosine-similarity dense index with optional numpy and pure-math fallback, Reciprocal Rank Fusion (RRF, k=60) merging, and a Cross-Encoder-style re-ranker via embedding dot products (drop-in replaceable by sentence-transformers). Functions index_documents(docs), search(query, top_k), rrf(rankings, k=60), plus a main() demo over a built-in corpus.
- ▌ Async Concurrency Handler · rmazrimImplement async/await workflows, promise pools, worker threads, or goroutines while preventing race conditions.
- ▌ Cors Csp Headers Hardener · rmazrimInspects HTTP response headers on local web servers and injects defensive security headers to prevent clickjacking, cross-site scripting, and unauthorized domain access.
- ▌ Dependency Injection Wiring · rmazrimDecouple code modules using Inversion of Control (IoC) containers and explicit interface abstractions.
- ▌ Codegen Drift Watchdog · rmazrimDetect when generated output (Prisma client, tRPC router types, OpenAPI clients) is stale versus its source schema, then auto-regenerate or fail CI with a precise list.
- ▌ DB Migration Generator · rmazrimGenerate database schema migration scripts (Prisma/TypeORM/Alembic) based on model changes.
- ▌ K8S Manifest Validator · rmazrimValidate and lint Kubernetes manifest files (YAML/JSON) against required fields, resource constraints, and best practices, with an optional kubectl dry-run schema check.
- ▌ License Clash Mediator · rmazrimBuild a dependency-license graph and flag copyleft/permissive conflicts plus missing license metadata before they become legal incidents.
- ▌ Mega Pipeline Deployer · rmazrimFlexible orchestration engine that executes pipeline workflows in Full Mode (all 7 steps sequentially) or Selective Mode (user-specified step subset). Performs data contracting and validation between active steps, skips inactive steps gracefully without breaking the chain, and halts execution with exact error logging when an active step fails.
- ▌ RAG Chunking Evaluator · rmazrimAnalyze document structures to recommend optimal chunking strategies and overlap ratios for RAG pipelines.
- ▌ Ast Anti Pattern Slayer · rmazrimParses Python or JavaScript-style source into an AST, computes cyclomatic complexity v(G) as decision count plus one, maximum block nesting depth, bare except clauses and unreachable dead code, then uses a conservative ast.NodeTransformer to rewrite trailing if/else wrappers into semantics-preserving early return and continue guard clauses, emitting a structured JSON diagnostics report with file line and column locations.
- ▌ GRAPHQL Schema Designer · rmazrimDesign GraphQL type definitions, query/mutation schemas, and resolver boilerplate code.
- ▌ Prompt Injection Security Shield · rmazrimA stdlib-only Python module (shield.py) implementing InjectionShield static inspection for jailbreak signatures, system-prompt extraction patterns, and command-injection payloads across input strings and RAG context windows, plus deterministic canary-token injection and verification (the f(n) model-output challenge). Classes ShieldConfig, InjectionShield, ScanReport, and a scan_cli() argparse entry point that reads files/stdin and emits a JSON report.
- ▌ Rate Limiter Middleware · rmazrimBuild API rate-limiting middleware using Token Bucket or Sliding Window algorithms.
- ▌ Refactor Safety Harness · rmazrimRecord golden outputs of current behavior before a refactor, then diff outputs after to prove behavior is unchanged.
- ▌ Regex Builder Explainer · rmazrimConstruct complex regular expressions based on pattern requirements with step-by-step logic breakdown.
- ▌ Shadow Traffic Replayer · rmazrimReplay recorded production HTTP traffic against a new build and diff responses to surface API regressions without writing a single test.