/** * Cross-skill dependency detection * * SKILL_CROSS_SKILL_AUTH_UNDECLARED — fires when SKILL.md body prose declares * a dependency on a sibling skill (backtick-wrapped `plugin:skill`) or on an * `ANTHROPIC_*_API_KEY` / `ANTHROPIC_*_KEY` environment variable but the * frontmatter `description` field does not name that dependency. * * Agents that load a skill by description alone must be able to see its * auth/pre-flight requirements without reading the body. When the dependency * is silent in the description, a sibling skill can be loaded in isolation * and fail mysteriously at runtime. * * The detector is narrow on purpose: false positives cost author attention, * so we only match the two explicit patterns where the author has already * stated the dependency in the body. */ import { type ValidationIssue } from '@vibe-agent-toolkit/agent-schema'; /** * Detect undeclared cross-skill auth / env-var dependencies. * * @param frontmatter - Parsed frontmatter (uses `description`). * @param bodyText - SKILL.md body text (post-frontmatter). * @param location - Project-relative POSIX path of the containing SKILL.md. * @returns One issue per undeclared dependency (deduplicated by token). */ export declare function detectUndeclaredCrossSkillAuth(frontmatter: Record, bodyText: string, location: string): ValidationIssue[]; //# sourceMappingURL=cross-skill-dependency-detection.d.ts.map