/** * Rule Collector — gathers existing project rules for dedup context in skill-gen. * * Reads CLAUDE.md, .cursorrules, .github/copilot-instructions.md, .claude/skills, * and .cursor/rules to provide existing-rules context so the LLM avoids suggesting * patterns that duplicate already-documented conventions. * * @module core/skill-gen/rule-collector */ export declare const MAX_RULES_TOKENS = 10000; export declare const MAX_PER_FILE_TOKENS = 2000; export declare class RuleCollector { private projectRoot; constructor(projectRoot: string); /** * Collect existing rule content from known locations. * Returns formatted string for injection into the LLM prompt, or empty string if none found. */ collectExistingRules(): Promise; /** * Recursively collect files matching given extensions from a directory. * Returns empty array if directory doesn't exist. */ private collectFiles; private readFileSafe; private truncateToTokens; } //# sourceMappingURL=rule-collector.d.ts.map