一键导入
kb-remove
Remove a KB file and its CLAUDE.md reference. Accepts an optional file path or prompts the user to select which entry to remove.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Remove a KB file and its CLAUDE.md reference. Accepts an optional file path or prompts the user to select which entry to remove.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Open a PR for the current branch, then loop on Codex Code Review until it comes back clean: resolve each finding, reply, and re-request review with a single @codex review once the whole pass is handled. Use when a feature branch is ready to ship and Codex Code Review is enabled on the repository.
Scaffold the repo side of Xcode Cloud for an XcodeGen / Tuist Swift project - generate ci_scripts/ci_post_clone.sh (regen + guarded CI_BUILD_NUMBER stamping), propose a unit-test-only CI scheme, print the exact App Store Connect workflow checklist, and optionally install an opt-in .githooks/pre-push gate. Shows diffs and confirms before writing.
Review Swift 6 strict-concurrency and SwiftUI code for idiom and build-breaking issues - non-Sendable across actor boundaries, @MainActor witness vs nonisolated protocol requirements, Combine/ObservableObject usage, force-unwraps, #Predicate macro limits, the 6.3.x Binding IRGen crash, missing #if os() guards, and unsafe escape hatches. Reports file:line with the fix and the why.
Diagnose a Swift / Xcode Cloud / TestFlight failure from a pasted red build log, an ITMS App Store rejection email, or a bare error code. Maps symptoms to root cause (ITMS-90242/90296/90683, errSec keychain codes, ad-hoc entitlement rejections, missing ci_scripts, signing errors) and prescribes the exact fix.
Audit a Swift / iOS / macOS repo for Xcode Cloud and TestFlight release blockers before upload - pbxproj drift, static build numbers, missing ci_scripts, macOS App Store entitlements/Info.plist, headless-CI keychain tests, ad-hoc signing entitlement rejections, and flaky-UITest release gating. Reports PASS/WARN/FAIL with file:line and fixes.
Run the right local verification gate for a Swift project - detect XcodeGen vs plain .xcodeproj vs SwiftPM vs Tuist, then regenerate (if applicable), swiftformat --lint, swiftlint --strict, and xcodebuild test on the cheapest valid destination (macOS for pure-Swift) or swift build/test for SwiftPM. Reports each stage; --fix lets SwiftFormat rewrite.
| name | kb-remove |
| description | Remove a KB file and its CLAUDE.md reference. Accepts an optional file path or prompts the user to select which entry to remove. |
| disable-model-invocation | true |
You are a knowledge base assistant. Your job is to cleanly remove a KB file and its corresponding CLAUDE.md reference table entry.
Resolving today's date (cross-platform, CRITICAL): Never guess, infer, or increment prior dates. When this skill writes last-updated, resolve today's date once at the start of the write phase, then reuse that single value for every write. Try these commands in order and use the first that returns a YYYY-MM-DD string:
date +%Y-%m-%dGet-Date -Format 'yyyy-MM-dd'powershell -NoProfile -Command "Get-Date -Format 'yyyy-MM-dd'"node -e "console.log(new Date().toISOString().slice(0,10))" or python -c "import datetime; print(datetime.date.today().isoformat())"Only bump last-updated on KB files whose frontmatter / body was actually modified by this run. Do not touch untouched files.
Check if the user provided a file path argument after the command (e.g., /kb-remove docs/kb/old-topic.md).
Use AskUserQuestion:
Show the user exactly what will happen. Use AskUserQuestion:
related frontmatter (these references will be cleaned up)If the file doesn't exist on disk, only show "Remove entry" and "Cancel".
Based on user choice:
related frontmatter, remove the reference from both the frontmatter AND the ## Related body section (keep them in sync). Update last-updated to the date resolved at the start of the write phase (only on files that actually changed). If the related frontmatter becomes empty, also remove the ## Related body section entirely.| _No entries yet_ | - | _Run /kb-learn to capture learnings or /kb-add to register KB files_ |docs/kb/_index.md: If this file exists, remove the entry for the deleted file. Update last-updated in its frontmatter.docs/kb/_log.md: If this file exists, append:
## [YYYY-MM-DD] remove | Removed {filename}
- Deleted file: {yes/no}
- Removed CLAUDE.md table entry
- Cleaned cross-references in: {list of files}
Display: