一键导入
update-history
Interactively edit an existing HistoryEntry in data/history/history.ts.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Interactively edit an existing HistoryEntry in data/history/history.ts.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | update-history |
| description | Interactively edit an existing HistoryEntry in data/history/history.ts. |
| user-triggered | true |
Edit an existing entry in data/history/history.ts.
Read data/history/history.ts and data/shared/linkIcons.ts.
Output a numbered list of all entries (name + year):
1. Enrolled in Hyogo Prefectural Ono High School (2020-04)
2. Joined Biology Club (2020-06)
…
Output: "Which entry to edit? Enter a number." Wait for reply. If the number is out of range, warn and ask again.
Display the current values of the selected entry, then output:
Fields:
1. name
2. description
3. year
4. approximate
5. feature
6. links
Output: "Which field to edit? Enter a number." Wait for reply.
Run the corresponding input step from the create-history skill (Steps 2–7) for the chosen field, showing the current value for reference.
For feature:
If the entry has no feature, ask (AskUserQuestion):
"This entry has no feature. Add one?"["Add feature", "Cancel"]create-history (collect title then description).If the entry already has a feature, ask (AskUserQuestion):
"What do you want to do with the feature?"["Edit title", "Edit description", "Edit both", "Remove feature"]feature field from the entry.After editing, ask (AskUserQuestion):
"Edit another field?"["Yes", "No"]If Yes, return to Step 3.
Display the updated entry as a formatted TypeScript object, then ask (AskUserQuestion):
["Yes, save it", "Edit more", "Cancel"]If Cancel, stop without writing. If "Edit more", return to Step 3.
Read data/history/history.ts again, replace the entry in-place (keep same array position), and write.
If year was changed, re-sort HISTORIES by year ascending (oldest first).
Run bun run typecheck.
Interactively add a new HistoryEntry to data/history/history.ts. Asks questions in HistoryEntry type property order (name → description → year → approximate → feature → links), validates link URLs, and keeps HISTORIES sorted by year ascending.
Remove an existing HistoryEntry from data/history/history.ts.
Display existing HistoryEntry entries from data/history/history.ts. Supports filtering by year.
Add a new labelled external-link type with a react-icons icon to data/shared/linkIcons.ts. Updates LINK_LABELS, LINK_ICONS, and the import statements.
Interactively add a new Work entry to data/works/works.ts. Asks questions in Work type property order (name → description → tags → year → links), supports new tag creation with similarity check, validates link URLs, and keeps WORKS sorted by year descending.
Remove a link label and its icon from data/shared/linkIcons.ts and all WorkLink arrays in works.ts.