home/roleplay/remove-2

Remove

GPTClaudeGemini··1,373 copies·updated 2026-07-14
remove-2.prompt
<protocol_ref_remove>
**Trigger**: `/archi.ref remove <id>`
**Goal**: Delete reference file and remove corresponding entry from index.json.

<step_1_locate>
Read `[[__DOCS_DIR__]]/refs/index.json`, find entry by `<id>`:

| Situation | Handling |
|:---|:---|
| id does not exist | **Stop** — Prompt to check id, can run `/archi.ref list` to view |
| Hit | Load file path then enter step_2 |
</step_1_locate>

<step_2_confirm>
Output delete confirmation card:
- Will delete reference file: `[[__DOCS_DIR__]]/refs/{id}.{ext}`
- Will remove index entry: entry with id = `{id}` in `refs/index.json`
- Hit reference info: title / tags / sourceType / source
- Risk warning: After deletion need to re-add to restore; only exact id match, no fuzzy deletion.

**Gate**: Wait for user explicit **OK** reply then enter step_3_delete; Cancel or unconfirmed stops, do not modify any file.
</step_2_confirm>

<step_3_delete>
1. Delete `[[__DOCS_DIR__]]/refs/{id}.{ext}` (If file already doesn't exist only record WARNING, don't block).
2. Remove entry from `refs/index.json`'s `refs` array.

Output:

fill the variables

This prompt has 2 variables. Pro fills them into a ready-to-paste prompt for you — no manual find-and-replace.

{id}{ext}
Unlock with Pro →

when to use it

Community prompt sourced from the open-source GitHub repo JiuNian3219/architext (MIT). A "Remove" style prompt — adapt the placeholders and specifics to your task. Imported as-is and not independently retested here, so check the output before relying on it.

tags

roleplaycommunitygeneral

source

JiuNian3219/architext · MIT