/** * Skill Preprocessor: processes SKILL.md body at load time. * * Three preprocessor types run in order: * 1. Variable substitution: ${VAR}, $ARGUMENTS, $N * 2. Shell commands: !`command` (parallel execution) * 3. Script execution: !{script: path} (parallel execution) * * Shell commands use the same shell selection logic as the Bash tool * (PowerShell on Windows, bash/zsh on Unix). * * References: * - docs/cortex/skill-system.md * - docs/cortex/cross-platform-considerations.md */ export interface PreprocessorConfig { /** Variables for ${VAR} and $N substitution. */ variables: Record; /** Context object passed to script executions. */ scriptContext: Record; /** Absolute path to the skill directory. */ skillDir: string; } /** * Preprocess a SKILL.md body. Runs all three stages: * 1. Variable substitution * 2. Shell commands and scripts (in parallel) * 3. Assemble final content */ export declare function preprocessSkillBody(body: string, config: PreprocessorConfig): Promise; /** * Substitute ${VAR}, $ARGUMENTS, and $N references with their values. */ export declare function substituteVariables(body: string, variables: Record): string; /** * Execute a shell command and return stdout. * Uses the same shell selection as the Bash tool. */ export declare function executeShellCommand(command: string, cwd: string): Promise; /** * Execute a JavaScript script and return its output. * Scripts are loaded via dynamic import() and must export a default * async function. */ export declare function executeScript(scriptPath: string, extraArgsStr: string, config: PreprocessorConfig): Promise; //# sourceMappingURL=skill-preprocessor.d.ts.map