Loading...
Loading...
Practical guide for building safe, syntax-aware srgn CLI commands for source-code search and transformation. Use when users ask for srgn commands, scoped refactors (comments/docstrings/imports/functions), multi-file rewrites with --glob, custom tree-sitter query usage, or CI-style checks with --fail-any/--fail-none.
npx skill4agent add outlinedriven/odin-codex-plugin srgn-clisrgn----upper--lower--titlecase--normalize--symbols--german-d-s--dry-run--fail-no-files--stdout-detection force-pipe--dry-run--dry-run--glob '**/*.py'---d-ssrgn [LANGUAGE_SCOPE_FLAGS...] [GLOBAL_FLAGS...] [ACTION_FLAGS...] [SCOPE_REGEX] -- [REPLACEMENT]--python 'imports''^old_pkg'-- 'new_pkg'--upper--glob '**/*.py' --dry-run--fail-any--fail-nonesrgn --python 'imports' '^old_pkg' --glob '**/*.py' --dry-run -- 'new_pkg'printsrgn --python 'function-calls' '^print$' --glob '**/*.py' --dry-run -- 'logging.info'usesrgn --rust 'uses' '^good_company' --glob '**/*.rs' --dry-run -- 'better_company'srgn --csharp 'comments' -d '.*'unsafesrgn --rust 'unsafe'srgn --python 'doc-strings' --fail-any 'param.+type'srgn --python 'strings' --stdout-detection force-pipe '(foo|bar)'srgn --typescript 'imports' '^legacy-lib' --glob 'src/**/*.ts' --sorted --dry-run -- 'modern-lib'references/cli-cookbook.md--stdout-detection force-pipe^...$--glob--fail-no-files-j--literal-stringreferences/cli-cookbook.mdreferences/language-scopes.mdreferences/advanced-patterns.mdreferences/deepwiki-recursive-notes.md--glob ... --dry-run--python 'function-calls'-j--fail-any--fail-none--stdout-detection force-pipe--literal-string------dry-run-j--fail-any--fail-none--fail-no-files