Skip to content
Back to skills

Add Product Artefact Renaming

ASecurity

Use when renaming product command or skill identities in bulk; derive a registry-backed map, inspect deterministic JSONL preview and apply only the checked preview.

  • 9 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added September 29, 2026
developmentbashnode

Works with

  • cli

Security analysis

A100/100

Scanned October 7, 2026

npx -y skills add brabos-ai/code-addiction --skill add-product-artefact-renaming --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Add Product Artefact Renaming?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Add Product Artefact Renaming
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/brabos-ai-add-product-artefact-renaming/badge)](https://www.skillsdirectory.com/skills/brabos-ai-add-product-artefact-renaming)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: add-product-artefact-renaming
description: "Use when renaming product command or skill identities in bulk; derive a registry-backed map, inspect deterministic JSONL preview and apply only the checked preview."
---

# Rename Product Artefacts

> **LANG:** Respond in the user's language. Tech terms stay in English. Short sentences.

<!-- uses:
- skill: add-artefact-graph
- mention: add-commit
-->

## When to Use

- Renaming one or more product commands or skills in `framwork/.codeadd/`.
- Changing provider registry names, frontmatter, fragments, plugin skills and active references in one delivery.

## When NOT to Use

- Renaming internal workbench identities, agents, features or scripts: this tool maps product commands and skills only.
- Rewriting archived deliveries, tickets, changelogs or documents in existing users' projects: preserve history.

```
IF THE CURRENT F-BLOCK HAS ONLY ONE LAYER TAG:
  ⛔ DO NOT USE: Bash to run the renamer with --scope all
  ✅ DO: Use --scope product for a [product] block and --scope docs for an [internal] block
```

## Procedure

1. Ask `add-artefact-graph` who calls every target and what each target needs. For an injected command, query each fragment returned by its direct impact separately. Inspect active non-artefact references too; `AGENTS.md`, CLI code and tests are not graph nodes.
2. Write the failing tests in `cli/tests/` or `scripts/tests/` before the rename. Assert the old command id (`add.new`) and the old skill id (`add-commit`) are absent, and the new ids (`add-new`, `add--commit`) are present. Read `framwork/provider-map.json` and `cli/src/plugins.json`; the tool derives the default old→new map from them. Pass `--map <file>` only to override mappings for active names; the override file has `commands` and `skills` objects.
3. Run `node scripts/rename-product-artefacts.js preview --scope <product|docs|all> --output <scratch-file>` for large migrations, or omit `--output` to get JSONL on stdout and the summary on stderr. `--root <repo>` is optional. `--scope docs` previews current README, AGENTS.md, web and workbench text separately; `--scope all` combines both. Pick the scope that matches the F-block layer tag.
4. Read the summary's `records`, `files` and `bytes`. Read the JSONL selectively by path and record type. Check each move and excerpt, especially fragments, frontmatter, runtime references and paths. A header carries the map and scope; a footer closes the preview. Do not treat a truncated or absent footer as approval.
5. Run `node scripts/rename-product-artefacts.js apply --preview <scratch-file>` with the same `--scope`, `--map` and `--root` as that preview. `--preview -` reads the same JSONL from stdin. Apply regenerates the preview, checks its bytes and all source hashes/destinations before writing anything; a stale or modified preview is rejected, so rerun preview instead of bypassing checks.
6. Sweep active files outside the tool's scope. Run `ADD_GRAPH_WARNINGS=1 node scripts/build.js` and require exit 0 with no new warning. Query the new node ids and their depth-1 edges. Then run `npm run test:cli` at the root for install, update and provider output; the dispatcher owns execution and isolation. Do not report success based on filename changes alone.

## Rules

ALWAYS:
- Treat the JSONL as a checked work list for the agent, not a human approval gate.
- Keep command and skill renames in the same F-block as their active dependants.
- Leave workbench identities and historical records unchanged.

NEVER:
- Apply a stale preview or bypass destination preflight.
- Assume that a command emitted as a `SKILL.md` changes its command identity.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.