backport-code
A skill for systematically backporting bug fixes and features across specs, templates, and downstream repositories.
- License 许可
- MIT
- 最近更新
- 2026-11-15
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- backport-code
- description
- A skill for systematically backporting bug fixes and features across specs, templates, and downstream repositories.
03 SKILL.md 正文
Backport Code
If this plugin is not initialized or an Agent IX command fails, read the dev-tools setup guide for its prerequisites and local diagnosis.
This skill provides a structured workflow for backporting fixes and features across the IX ecosystem, ensuring changes propagate correctly from specs to templates to downstream repos.
Scope Definitions
Scopes define the breadth of a backport operation:
- all: Applies to the entire ecosystem
- language: Language-specific (e.g.,
python,typescript) - repo-type: Repository type (e.g.,
python-lib,react-app) - library: All languages using a specific library
- feature: A specific feature (e.g.,
fastapi,postgres,postgres)
Workflow
-
Determine Target Scope Identify which scope(s) the fix applies to (all, language, repo-type, or library).
-
Determine Source Implementation Choose the source based on the type of work:
- New features: Implement in reference implementations first.
- Bug fixes: Fix in current project if currently iterating. Otherwise, implement in reference implementations first. The goal is choosing a golden example to prove a solution against, and then propagating that solution to all other projects.
-
Backport to Specs Update relevant specifications if the change affects defined behavior. Specs are the source of truth.
-
Backport to Reference Implementations Apply and fully test changes in the reference implementation. Ensure CI passes.
- Crucial (Golden Path): Verify if the change deviates from or updates the
Golden Pathspec. If so, update the Golden Path documentation first or concurrently. Reference implementations must match the Golden Path.
- Crucial (Golden Path): Verify if the change deviates from or updates the
-
Backport to Templates Update project templates (
*-cookiecutter) to ensure new projects inherit the fix. Test template generation. -
Forward Port to Downstream Repos Propagate to affected repositories based on the target matrix.
-
Skill Retrospective
- Improve: Consider any corrections received during the task and propose improvements to this skill.
- Document: Add the specific use case you just completed to the "Example Scenarios" section of this skill file as a reference.
Planning Format
Plans should always list changes first, followed by target matrices.
Example Plan Structure
## Changes
### [Type]: [Title]
[Description of the change]
## Targets
### Specs
| Spec | Status | PR | Notes |
|------|--------|-----|-------|
| [spec-name] | [Status] | [Link] | [Notes] |
### Templates
| Template | Scope | Status | PR | Notes |
|----------|-------|--------|-----|-------|
| [template-name] | [scope] | [Status] | [Link] | [Notes] |
### Repos
| Repository | Type | Status | PR | Notes |
|------------|------|--------|-----|-------|
| [repo-name] | [type] | [Status] | [Link] | [Notes] |
Status Legend
- ⏳ Pending (Work in progress)
- ✅ Complete (Merged and deployed)
- 🔜 Queued (Not yet started, waiting on dependencies)
- ❌ Blocked (Cannot proceed due to blocker)
- 🔍 Review (PR open, awaiting review)
Best Practices
- Test First: Test thoroughly in reference implementations before propagating.
- Traceability: Link related PRs and document changes clearly.
- Planning: Update the plan matrix as work progresses.
Example Scenario: Makefile Standardization
Context: A new pattern for secure package installation (RUN_WITH_CREDS) was developed in py-deps.
- Target Scope:
language: python(All Python projects). - Backport to Specs: Updated
golden-path/specs/languages/python/makefile-standards.mdto requireRUN_WITH_CREDS. - Reference Implementation: Updated
auth-service(the Python reference service) Makefile and verified CI passes with new credentials logic.- Verification: Confirmed
auth-servicematches the newmakefile-standards.md.
- Verification: Confirmed
- Templates: Updated
fastapi-cookiecutterMakefile. Generated a blank test project to verifymake buildworks out-of-the-box. - Forward Port: Propagated changes to
cloud-managerservices,identity, and other downstream Python repositories.
Example Scenario: Prettier Config Visualization
Context: Discovered docker-compose.yml was missing .prettierrc volume mounts, causing default config usage in chat-input.
- Target Scope:
language: typescript(Repos using explicit Docker volumes). - Source Implementation: Fixed in
chat-input(Reference). - Backport to Templates: Updated
typescript-react-lib-cookiecutterto include.prettierrcand.prettierignoremounts. - Forward Port: identified repos using explicit file mounts (
chat-window,login-box,mcp-gateway-ui) and applied the fix. Skipped repos using directory mounts (.:/app) as they implicitly include config.
Example Scenario: TypeScript Testing Patterns
Context: A new Jest testing pattern (typed mocks, async utilities) was developed and needs propagation to all TypeScript projects.
- Target Scope:
language: typescript(All TypeScript projects, both React and non-React). - Backport to Specs: Update
golden-path/specs/languages/typescript/testing.mdto document the pattern. - Reference Implementation: Apply to
nodejs-lib(non-React reference) andtypescript-react-lib(React reference). Verify CI passes on both. - Templates: Update both templates:
typescript-lib-cookiecutterfor pure TypeScript/Node librariestypescript-react-lib-cookiecutterfor React component librariesweb-app-cookiecutterfor React web apps Generate test projects from each to verifymake testworks.
- Forward Port: Propagate to downstream repos based on their type:
- React repos:
core-web-ui, UI component libraries - Non-React repos:
nodejs-lib, utility packages, MCP servers
- React repos:
04 同仓库更多 Skills
assurance-onboarding
Capture a generic handoff in the fixture host.
writing-tests-typescript
Instructions for writing TypeScript tests (Jest), including typed mocks and testing patterns.
writing-tests-react
Index to React component testing guides.
writing-tests-python
Instructions for writing Python tests (pytest), including mocking, fixtures, and golden path standards.
writing-tests-pg-data
Instructions for writing tests for PG Data services, likely involving database fixtures and integration tests.
security-deepsec
Run a generic DeepSec-backed security review and remediation burndown for one or more target repositories. Use when asked to audit a repo, app area, service family, frontend/backend/client/SDK surface, infrastructure, or security-sensitive workflow with DeepSec; when asked to create local audit artifacts, GitHub security issues, checksite coverage, finding reports, spec/AC/test traceability, or a repeatable security burndown process.