Index of every page on this site: llms.txt
All skills
victory-hugo avatar

/bioinformatics-log-resume

@0b19307
Run it yourself

为生物信息学多样本批处理脚本设计、实现或审查基于日志的断点续跑。用于 bash/shell 主控脚本需要支持中断后重跑、并行写日志防竞争、按样本写入 success.log 和 fail.log、并且明确禁止通过扫描输出目录或输出文件判断完成状态的场景。适用于给现有流水线补加断点续跑、重构样本循环、或检查实现是否只依赖日志判定完成。

  • 3 files
  • 6.5 KB
  • Updated 8 months ago
  • GitHub
Use this Skill: https://skilld.dev/gh/victory-hugo/s2-agent-skill/bioinformatics-log-resume

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

referenceslog-contract.md

≈383 tokens on demand. Your agent reads this file only when SKILL.md points to it.

Log Contract

Required Files

在项目根目录或脚本约定的工作目录下,固定使用以下文件:

  • log/.resume.lock
  • log/success.log
  • log/fail.log

log/ 是断点续跑的唯一状态目录。不要把断点状态分散到 output/、临时目录或结果目录。

Record Formats

success.log 每行记录一个成功样本,格式固定为:

sample_id<TAB>timestamp

示例:

SRR001	2026-03-15T16:45:22+08:00
SRR002	2026-03-15T16:47:10+08:00

fail.log 每行记录一个失败样本,格式固定为:

sample_id

示例:

SRR003
SRR005

Resume Truth Table

断点续跑时,只允许基于 success.log 第一列的样本 ID 做完成判定:

条件 下次运行动作
样本在 success.log 中 跳过
样本只在 fail.log 中 重跑
样本既不在 success.log 也不在 fail.log 中 运行
样本同时在 success.log 和 fail.log 中 跳过,成功优先

fail.log 仅用于记录失败历史和人工排查,不得作为“已处理完成”的依据。

Forbidden Patterns

明确禁止以下模式:

  • if [ -f output/... ]
  • if [ -s result.txt ]
  • find output -name ...
  • ls output/...
  • 通过目录中文件数量推断完成状态
  • 通过结果文件大小、时间戳或存在性重建样本状态
  • 把“有输出文件”视为“已完成”

只要逻辑是在扫描产出文件来判断样本是否做完,就属于违规实现。

Source: SKILL.md on GitHub

No rule matched.

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No third-party reports yet.

Signed by skilld at 0b19307. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 3 days ago.

Activeupdated 8 months ago

README badge

README badge for victory-hugo/s2-agent-skill/bioinformatics-log-resume