/loxihart-engineering:code-transferfrom loxihart-engineering
Transfers code between files with line-based precision. Use for copying, moving, extracting, or inserting code at specific line numbers.
Ships in loxihart-engineering. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Transfer code between files with precise line-based control. Dual-mode operation: native tools (1-10 files) or execution mode (10+ files, 90% token savings).
Use Read, Edit, Bash scripts for 1-10 file operations. Works immediately, no setup required.
from api.filesystem import batch_copy
from api.code_analysis import find_functions
functions = find_functions('app.py', pattern='handle_.*')
operations = [{
'source_file': 'app.py',
'start_line': f['start_line'],
'end_line': f['end_line'],
'target_file': 'handlers.py',
'target_line': -1
} for f in functions]
batch_copy(operations)
Read(file_path="src/auth.py") # Full file
Read(file_path="src/auth.py", offset=10, limit=20) # Line range
Grep(pattern="def authenticate", -n=true, -A=10) # Find function
Use line_insert.py script for line-based insertion:
python3 skills/code-transfer/scripts/line_insert.py <file> <line_number> <code> [--backup]
Examples:
# Insert function at line 50
python3 skills/code-transfer/scripts/line_insert.py src/utils.py 50 "def helper():\n pass"
# Insert with backup
python3 skills/code-transfer/scripts/line_insert.py src/utils.py 50 "code" --backup
# Insert at beginning
python3 skills/code-transfer/scripts/line_insert.py src/new.py 1 "import os"
When to use:
Use Edit when insertion point is relative to existing code:
Edit(
file_path="src/utils.py",
old_string="def existing():\n pass",
new_string="def existing():\n pass\n\ndef new():\n return True"
)
Grep(pattern="def validate_user", -n=true, -A=20)Read(file_path="auth.py", offset=45, limit=15)Read(file_path="validators.py")line_insert.py or Edit based on contextGrep(pattern="class DatabaseConnection", -n=true, -A=50)Read(file_path="original.py", offset=100, limit=50)Write(file_path="database.py", content="<extracted>")Edit in original fileEdit with replacementRead(file_path="main.py", offset=20, limit=10)python3 skills/code-transfer/scripts/line_insert.py main.py 25 "logger.info('...')" --backupRead(file_path="main.py", offset=23, limit=5)Read(file_path="utils.py")Grep(pattern="^def |^class ", -n=true)Write new filesPlanning:
Preservation:
Validation:
Backups:
--backup for significant changesWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
code-transfer, copy-code, move-code, extract-code, insert-code, line-operations
22 skills in this plugin
/administering-supabaseManages Supabase database operations for FlashFusion's production stack — schema design, Row Level Security policies, migrations, Edge Functions, and debugging. Active project: flashnframe-app (etctmappdhpjuwptdbeb). Use when the user mentions: Supabase, RLS, row level security, migration, schema, database, table, Edge Function, auth, policies, Postgres, supabase query, database admin, add a column, create a table, why is my query blocked, or any task involving the Supabase project or database structure.
/auditing-logicAudits code for logical errors before they become bugs — control flow gaps, data contract violations, schema/type drift, business logic inconsistencies, and silent failure paths. Produces a severity-rated issue list with a one-line diagnosis and one-line fix per finding. Use this skill whenever code is pasted with a review request, or when the user says "audit this", "check the logic", "does this make sense", "any issues with this", "logic audit", "what's wrong here", "review this function", "is this correct", or hands you any code file and wants a critical eye. Even if the user does not say "logic" — if code is present and they want feedback, use this skill. Also triggers on: "find the bug", "something feels off", "is this right", "sanity check this", "does this hold", "validate my logic", "code review", "PR review", "review this PR".
/code-auditorPerforms comprehensive codebase analysis covering architecture, code quality, security, performance, testing, and maintainability. Use when user wants to audit code quality, identify technical debt, find security issues, assess test coverage, or get a codebase health check./debug-like-expertDeep analysis debugging mode for complex issues. Activates methodical investigation protocol with evidence gathering, hypothesis testing, and rigorous verification. Use when standard troubleshooting fails or when issues require systematic root cause analysis. Triggers on: debug this, root cause analysis, systematic debugging, why is this failing, trace this bug, diagnose this issue, investigation protocol, hypothesis testing./engineering-patternsProduction engineering pattern library spanning 11 phases — Foundation, Resilience, Performance, Data Integrity, Observability, Deployment, Scalability, Edge Cases, Security Deep, Compliance/DR/FinOps, and AI/HITL. Use when auditing code for production readiness, applying hardening patterns, reviewing system design, pattern audit, apply phase, harden this, production-ready, resilience patterns, observability gaps, security review, DR plan, FinOps, or AI guardrails. Use alongside engineering-staff-workflows for execution. Not for writing the implementation itself — that is engineering-staff-workflows.
/engineering-staff-workflowsOperates as a security-first, scope-gated Staff Engineer workflow for production system builds across a 50–200 engineer organization. Routes every task through mandatory SCOPE_MODE gating, applies WSJF backlog prioritization, enforces AppSec-grade threat modeling, and covers the full stack from frontend to edge to AI pipeline to agent orchestration. Use when the user mentions: multi-file builds, agent or MCP systems, infrastructure work, security audits, full-stack features, or any architecture requiring agentic-aware design with observability-first patterns. Also triggers on: help me architect this, build this properly, review my system design, multi-file build, how should I structure this, is this production ready, or any request involving 3 or more files or system-level thinking.
npx claudepluginhub krosebrook/loxihart-skills --plugin loxihart-engineering2 plugins ship this exact skill · first indexed Jun 6, 2026
Other plugins' skills for the same job