From forge-core
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, rules for proton, rules for lb-agent.
npx claudepluginhub n4m3z/forge-coreThis skill uses the workspace's default tool permissions.
Take a source rule set and adapt it for a target repo that consumes the lib submodule as infrastructure but has its own identity.
Guides Next.js Cache Components and Partial Prerendering (PPR): 'use cache' directives, cacheLife(), cacheTag(), revalidateTag() for caching, invalidation, static/dynamic optimization. Auto-activates on cacheComponents: true.
Processes PDFs: extracts text/tables/images, merges/splits/rotates pages, adds watermarks, creates/fills forms, encrypts/decrypts, OCRs scans. Activates on PDF mentions or output requests.
Share bugs, ideas, or general feedback.
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 too