foxctl Smart Edit

Perform symbol-aware code edits with a dry-run diff preview.

3|Updated Apr 14, 2026
One-click install
npx skills add https://github.com/joshka0/foxctl --skill foxctl-smart-edit
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: foxctl Smart Edit
Source: https://github.com/joshka0/foxctl/tree/main/configs/skills-condensed/foxctl-smart-edit
Command: npx skills add https://github.com/joshka0/foxctl --skill foxctl-smart-edit

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

It removes the risk and guesswork of manual edits by enabling precise, symbol-aware code changes with a dry-run diff preview before anything is written.

Core Features & Use Cases

  • Symbol-aware editing: Update entire functions by symbol name (e.g., replace a function while preserving surrounding structure).
  • Scoped line edits: Modify a specific line range without touching unrelated code.
  • Scoped search/replace: Perform search/replace within a given symbol (or across the scope) to avoid accidental broad changes.

Quick Start

Run smart edit for a safe dry-run diff by asking foxctl to replace the HandleRequest function in main.go.

Frequently Asked Questions about foxctl Smart Edit

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I safely refactor a Go function without breaking surrounding code?

You can safely refactor a Go function by using symbol-aware editing to replace the target function by its name while preserving the surrounding code structure.

What is AST-aware code editing and when do I need it?

AST-aware code editing is a technique that parses code structure to target specific symbols or line ranges, needed when performing function-level refactors or scoped search/replace operations without blind text replacement.

How do I preview code changes before applying a search and replace operation?

You can preview code changes by running a dry-run diff, which outputs a safe preview of scoped search/replace operations without actually writing modifications to the existing source file.

Can I perform a search and replace restricted to a specific line range or symbol?

Yes, you can perform a scoped search and replace operation restricted to a specific line range or within a defined symbol to avoid accidental broad changes across the repository file.

Does foxctl Smart Edit work with blind text replacement for modifying source files?

No, foxctl Smart Edit avoids blind text replacement by requiring JSON input to specify path and edits, applying symbol-aware code changes with a dry-run diff preview to safely modify existing source.