skills/AdaptPrompts/SKILL.md
Adapt generic rules and prompts for independent repos — strip forge branding, add path scoping, drop irrelevant rules, preserve custom overrides. USE WHEN adapt rules, adapt prompts, port rules, specialize rules, sync rules, update rules for repo, downstream repo, consumer repo.
npx skillsauth add n4m3z/forge-core AdaptPromptsInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Take a source rule set and adapt it for a target repo that consumes the lib submodule as infrastructure but has its own identity.
Read the target repo's rules/ directory. Classify each file:
IndustrySecrets.md, ScanRepository.md). Never touch these.paths: frontmatter, content changes). Preserve the adaptation, update the base content if the source changed.Read the source rule set. Default source: the module that owns this skill (forge-core/rules/). The user can specify a different source.
For each source rule, decide relevance to the target:
| Rule type | Action | |-----------|--------| | Generic development (KeepChangelog, KeepCodeowners, UseRTK, GitConventions, LessIsMore, PlatformAgnostic, SanitizeData) | Port — these apply to any repo | | Module-specific (ChooseLicense, MakefileFirst, AuthorInModules, CanonSidecar, SkillNaming) | Skip unless the target is a forge module | | Forge-branded (ContextualNaming) | Skip — meta-rule about adaptation itself | | Provider-specific (CodexAgents, GeminiAgents, AgentTeams) | Port only if the target uses agents | | Memory/tooling (MemoryFiles, KnownIssues, ShellAliases) | Port only if relevant to the target's stack |
For each rule being ported, apply these transformations:
paths: frontmatter when the rule should be scoped (e.g., SelfLearning.md scoped to the target's skill paths).Present the adaptation plan as a table before making changes:
| Source rule | Target status | Action | Notes |
|-------------|---------------|--------|-------|
| UseRTK.md | Identical copy (old name RTK.md) | Rename + update | Content unchanged |
| KeepChangelog.md | Missing | Add | Generic, applies to any repo |
| ChooseLicense.md | N/A | Skip | Module-specific |
Ask the user to confirm before writing. Apply changes with the Write tool.
After writing, list the final rules/ directory contents grouped by origin:
RTK.md → UseRTK.md), rename in the target toodevelopment
Reactive correction and root-cause fix. USE WHEN something went wrong, user is frustrated, demands a correction, says wtf, what the hell, why did you, that's wrong, this is broken, no not that, stop. Executes the immediate fix, then hunts the upstream artifact that caused it and creates a corrective change.
development
Decompose a research question into sub-queries, spawn parallel WebResearcher agents per angle, synthesize findings with citations and explicit confidence. USE WHEN the user asks to research, investigate, look online, look up, dig into, find sources, gather evidence, or survey what's known about a topic. Single-pass; for multi-round adversarial research use ResearchCouncil in forge-council.
tools
Author project documentation that future humans (and AI sessions) actually read. Covers TLDRs for tools, READMEs, runbooks, journals. USE WHEN write documentation, create tldr, tool one-pager, document a cli, write readme, runbook, journal entry, capture knowledge about a tool, distill a session into reusable notes.
development
Review your own staged changes via a code-review TUI before triggering a commit. USE WHEN about to commit, walking through your own staged diff, self-reviewing before approval, tuicr, revdiff, git diff cached.