跳到正文
cccskills
免费在 GitHub 公开

regen-text

Regenerate, audit, commit, and push Istaroth's generated text corpus in the text/ submodule. Use when the user asks to "regen corpus", regenerate committed text output, audit a corpus diff for content loss, or push a previously verified text regeneration.

中文简介正在准备中。当前显示原文说明。

查看安装方法

包含的文件(2)

  • SKILL.md4.5 KB
  • agents/openai.yaml286 B

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

Regenerate Text

Run every command from the parent repository root unless explicitly told to run inside text/. Preserve the parent repository's single-commit PR workflow.

Regenerate the corpus

When the user asks to regen corpus:

  1. Inspect the parent and submodule status. Do not overwrite unrelated user changes.

  2. Rebase onto the latest target branch:

    git fetch origin
    git rebase origin/main
    
  3. Initialize the submodule shallowly when needed:

    git submodule update --init --depth 1 text
    

    Depth 1 is sufficient because the audit compares the working tree with the pinned HEAD.

  4. In text/, check out main before committing. If the shallow checkout lacks the local branch, create or reset it at the pinned commit without discarding changes.

  5. Build the Rust regen binary, then run a complete regeneration of both languages. The two write to independent directories (text/chs vs text/eng), so run them in parallel; a full dual-language regen takes only a few seconds, so a single foreground shell command suffices:

    source .env.common   # provides AGD_PATH; without it both runs fail instantly
    cargo build --profile fast --manifest-path rust/Cargo.toml
    ./rust/target/fast/istaroth-agd-regen generate-all --language CHS -f text/chs > /tmp/regen-chs.log 2>&1 &
    chs_pid=$!
    ./rust/target/fast/istaroth-agd-regen generate-all --language ENG -f text/eng > /tmp/regen-eng.log 2>&1 &
    eng_pid=$!
    wait "$chs_pid"; chs_status=$?
    wait "$eng_pid"; eng_status=$?
    echo "chs=$chs_status eng=$eng_status"
    

    Both must exit 0; inspect the corresponding log on any non-zero status. A finished log ends with a Document hierarchy written to …/metadata/agd/hierarchy.json line, a useful secondary completeness signal. Only commit a full regen into text/; ad hoc partial checks belong in a throwaway directory.

  6. Audit the generated diff using the procedure below. Treat any unexplained lost content as a failure to investigate before committing.

  7. Run pre-commit separately from committing and add any resulting changes. pre-commit is not on PATH; invoke it as uv run pre-commit run.

  8. Commit the generated data inside text/ on its main branch.

  9. Record the submodule pointer in the parent repository's single code commit:

    • Amend the existing code commit with git add text && git commit --amend --no-edit when the regen accompanies a code change.
    • For a pure text regeneration, create the parent's one commit normally.
  10. Report the wall-clock regeneration duration and audit results. Do not push either repository; wait for user verification.

Audit corpus diffs

Run the audit inside text/. Compare each changed file's working-tree content with git show HEAD:<path>.

  1. Audit chs and eng independently. Do not cross-normalize language-specific macros such as {NICKNAME} or {M#...}{F#...}.
  2. Normalize each line by stripping whitespace and dropping:
    • blank lines
    • Option \d+:
    • ## Talk N
    • ### ...
    • (Quest is part of chapter...)
  3. Compare collections.Counter values per file:
    • old - new is genuinely lost content.
    • new - old is added content.
  4. Aggregate results across all changed files. lost-content == 0 is the pass condition; do not rely on --numstat or net line counts.
  5. Split additions into:
    • brand-new lines absent from the old file
    • increased multiplicity of lines already present in the old file
  6. Categorize totals by agd_quest, agd_talk, and agd_talk_group.
  7. After the aggregate passes, sample files for growth ratios and inspect one or two representative diffs. Avoid a full serial git show scan of every file.

Push a verified regeneration

When the user later asks to push the text regen after verification:

  1. Confirm both repositories are clean and the parent points at the intended submodule commit.
  2. Push the istaroth-text commit from text/ to its remote main branch first.
  3. Force-push the current parent PR branch because amending the submodule pointer rewrote its single commit. Use the existing upstream and prefer --force-with-lease.
  4. Report both pushed commit IDs and branch names.

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

Identify and add new AnimeGameData field deobfuscation mappings by comparing cleartext and obfuscated AGD revisions. Use when a new Genshin Impact build changes obfuscated JSON field names or when rust/istaroth-agd-regen/src/deob.rs needs a new version mapping block.

中文简介正在准备中。当前显示原文说明。

isundaylee/istaroth122026年10月20日 更新

Ingest a new AnimeGameData (AGD) build end-to-end — deobfuscation mappings, TextMap fallback-list audit, first-seen version index, and corpus regen. Use when bumping AGD_PATH / AGD to a new game version.

中文简介正在准备中。当前显示原文说明。

isundaylee/istaroth122026年10月20日 更新

changelog

免费

Generate or update CHANGELOG.md from landed git history. Use when the user asks to "write a changelog", "update the changelog", or summarize what changed over the last week/period.

中文简介正在准备中。当前显示原文说明。

isundaylee/istaroth122026年10月20日 更新

Create a simple, modern HTML review page and run a local browser feedback loop with inline element/text annotations and structured questions. Use when the user wants to discuss or iterate on a design, plan, comparison, scope decision, content draft, or other topic that is easier to review visually than in chat.

中文简介正在准备中。当前显示原文说明。

isundaylee/istaroth122026年10月20日 更新

pr

免费

Squash the current branch's work into a single commit and open (or update) a GitHub pull request with Graphite (`gt`). Use when asked to "create a PR", "open a pull request", "put this up for review", or to update an existing PR for the current branch.

中文简介正在准备中。当前显示原文说明。

isundaylee/istaroth122026年10月20日 更新

Add or revise retrieval-quality eval fixtures under istaroth/rag/eval/retrieval_fixtures/ (one JSON file per category, e.g. breadth.json). Use when asked to add a retrieval eval case, add a new eval category, improve a fixture's ground truth, or harden fixtures against false misses. Fixtures grade whether retrieval surfaces the sources a query needs, measured by passage-anchored facet coverage.

中文简介正在准备中。当前显示原文说明。

isundaylee/istaroth122026年10月20日 更新

查看 isundaylee 的全部技能

报告此技能的问题