interface ScanConfig { include: string[]; exclude: string[]; /** Slugs present on disk but excluded from README Taxonomy (internal skills). */ nonPublicSkills?: string[]; } interface DenyConfig { /** Repo-wide globs that must not exist — audit fails if matched. */ paths?: string[]; } /** * Ownership policy for skill-body linting. * Lockfile `sourceType` other than `local` (e.g. `github`) marks skills foreign by default. */ export interface SkillOwnershipConfig { /** Repo-relative path to skills-lock.json (default: skills-lock.json). */ lockfile?: string; /** Force these slugs owned even if the lockfile marks them foreign. */ ownedSlugs?: string[]; /** Force these slugs foreign even if absent from the lockfile / local. */ foreignSlugs?: string[]; } /** Files that must appear in at least one scanned document's review-deps. */ interface ReviewCoverageConfig { /** Repo-relative globs that require an owning paper. Empty include disables the gate. */ include?: string[]; /** Globs removed from the coverage set. */ exclude?: string[]; } /** Harness-neutral review settings for `skeleton review prepare`. */ interface ReviewConfig { /** Globs for high-consequence paths; a change there needs a person, not an agent. */ humanPaths?: string[]; /** Shell command that receives the review bundle on stdin (`review prepare --run`). */ command?: string; /** Fixed review count that overrides the computed tier (1 for short prose-only changes, otherwise 2). */ reviewers?: number; /** Globs left out of the bundle's diff text and listed by name, like lockfiles and generated files. */ omitFromDiff?: string[]; } /** Tunables for near-duplicate and SSOT-summary docs lint. */ interface DocsLintConfig { /** Jaccard threshold on word shingles (0–1). Default 0.72. */ nearDuplicateThreshold?: number; /** Min fraction of SSOT tokens that must appear in evidence (default 0.35). */ ssotOverlapMin?: number; /** Margin by which another file must beat own overlap for better-match (default 0.15). */ ssotBetterMatchMargin?: number; /** When overlap fails, mention missing SSOT phrase in the message (default true). */ ssotPhraseCheck?: boolean; /** Repo-relative path pairs to skip in near-dupe / duplicate-SSOT checks. */ ignorePairs?: [string, string][]; /** Globs excluded from near-dupe / duplicate-SSOT (still catalogued if they have SSOT). */ ignoreGlobs?: string[]; } export interface SkeletonConfig { scan: ScanConfig; /** Re-read cadence (days), measured from the document's last commit. */ daysUntilStale: number; deny?: DenyConfig; skillOwnership?: SkillOwnershipConfig; review?: ReviewConfig; reviewCoverage?: ReviewCoverageConfig; docsLint?: DocsLintConfig; /** * Plugin entry paths relative to `.skeleton/` (e.g. `plugins/example.ts`). * Each entry must have a built sibling `.mjs` (`skeleton build-plugin`). */ plugins?: string[]; /** * Path prefixes where `draft-marker` prose-policy placement is allowed * (in addition to `_draft-*.md` filenames). Not the same as `scan.exclude`. */ draftPathPrefixes?: string[]; } export {};