← スキル一覧に戻る

add-new-file
by tpn
add-new-fileは、other分野における実用的なスキルです。複雑な課題への対応力を強化し、業務効率と成果の質を改善します。
⭐ 86🍴 15📅 2026年1月23日
SKILL.md
name: add-new-file description: Add or update PerfectHash generated file outputs (file work entries, prepare/save callbacks, CMake/VCXProj registration, and tests) when new output files or artifacts need to be added.
Add New Generated File
Workflow
- Add a new entry to
src/PerfectHash/PerfectHashFileWork.hinVERB_FILE_WORK_TABLEwith the right suffix/extension/EOF init; keep ordering invariants (streams follow owning files, VC project entries stay contiguous, context files stay contiguous). - Implement prepare/save callbacks in
src/PerfectHash/Chm01FileWork*.c. If a stage is intentionally unused, setPrepareXxxChm01orSaveXxxChm01toNULLinsrc/PerfectHash/Chm01FileWork.h. - If a new file extension is needed, add a
UNICODE_STRINGinsrc/PerfectHash/PerfectHashConstants.cand wire it into the file work entry. - Register new sources in
src/PerfectHash/CMakeLists.txt; mirror additions insrc/PerfectHash/PerfectHash.vcxprojandsrc/PerfectHash/PerfectHash.vcxproj.filters. - Update
src/PerfectHash/Chm01FileWork.cpath logic when a file needs custom base names, directories, or stream rules. - Update generators/tests (
src/PerfectHash/Chm01FileWorkCMakeListsTextFile.c,tests/run_cli_codegen_test.cmake, etc.) if the new file needs build/test coverage. - Add or expand tests to write the new files and compile/run them.
File Enum Capacity
- When the 64-bit bitmap for file enums is exhausted, add a new enum group with
_2,_3, etc. suffix and preserve existing ordering rules.
スコア
総合スコア
80/100
リポジトリの品質指標に基づく評価
✓SKILL.md
SKILL.mdファイルが含まれている
+20
✓LICENSE
ライセンスが設定されている
+10
✓説明文
100文字以上の説明がある
+10
○人気
GitHub Stars 100以上
0/15
✓最近の活動
3ヶ月以内に更新
+5
✓フォーク
10回以上フォークされている
+5
✓Issue管理
オープンIssueが50未満
+5
✓言語
プログラミング言語が設定されている
+5
✓タグ
1つ以上のタグが設定されている
+5
レビュー
💬
レビュー機能は近日公開予定です
