octivi-bash-boilerplate

Create, refactor, and migrate Bash scripts with Octivi Bash Boilerplate (OBB) using marker blocks (`# >>> OBB:BEGIN ...` / `# <<< OBB:END`). Use when selecting `header` vs `full` integration, copying ready templates, updating marker blocks, and validating script quality with deterministic checks.

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "octivi-bash-boilerplate" with this command: npx skills add octivi/bash-boilerplate/octivi-bash-boilerplate-octivi-bash-boilerplate

Octivi Bash Boilerplate

Use this skill for any Bash script task that should follow OBB conventions.

Do not add any OBB header or marker blocks to a script whose only job is to invoke another command with fixed arguments. Keep such wrappers plain and minimal unless they grow real script logic.

Inputs Required

  • Script intent and lifecycle (throwaway helper vs maintained CLI).
  • CLI contract: required/optional flags, positional args, env vars.
  • Output contract: stdout/stderr format, exit codes.
  • Side effects: files, network, permissions, cleanup requirements.

If any of these are missing, infer minimally and state assumptions.

Decision Table

First decide whether the script should use OBB at all. If it is a very simple wrapper around another command, use no OBB integration. Otherwise choose exactly one mode per script:

ModeUse whenTradeoff
headerSmall scripts; strict mode + basic constants are enoughFew helpers, more manual utilities
full-sourceMedium/large scripts; you can rely on external OBB library pathCleaner file, external runtime dependency
full-embeddedMedium/large scripts; self-contained delivery requiredBigger file, embedded generated block

Execution Steps

  1. Read references/workflow.md and apply the flow for new/refactor/migration.
  2. If the script is only a thin wrapper that calls another command with predefined arguments, stop before adding any OBB header or marker blocks.
  3. Copy one ready template to destination: cp skills/octivi-bash-boilerplate/assets/templates/<header-only-script|full-obb-script-source|full-obb-script-embedded> ./script.sh.
  4. Implement business logic outside OBB marker blocks.
  5. If a marker block is unpopulated or stale, run: octivi-bash-boilerplate-update <script>.
  6. Run quality gates from references/checklist.md and resolve all required failures.

Output Contract

The final response must include:

  • Selected mode and short rationale.
  • What changed (CLI, behavior, compatibility expectations).
  • Commands executed for validation.
  • Residual risks and follow-up actions, if any.

Template Source Of Truth

  • Canonical OBB scripts live at repository root:
    • octivi-bash-boilerplate
    • octivi-bash-boilerplate-header
    • octivi-bash-boilerplate-update
  • Do not edit assets/templates/* marker payloads manually; regenerate with: scripts/generate-skill-templates.

Reference Loading Strategy

  • Primary workflow: references/workflow.md.
  • Final gate and pass/fail rules: references/checklist.md.

Non-negotiable rules

  • Keep marker syntax exact: # >>> OBB:BEGIN variant=header|full and # <<< OBB:END.
  • Do not add OBB headers or marker blocks to trivial wrapper scripts that only execute another command with fixed arguments.
  • Keep all business logic outside OBB marker blocks.
  • For full embedded mode, keep variant=full marker block at end of script.
  • Never source octivi-bash-boilerplate-header as a library file.
  • Use one template variant per script and avoid mixing integration styles.

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

common-changelog

No summary provided by upstream source.

Repository SourceNeeds Review
General

git-commits

No summary provided by upstream source.

Repository SourceNeeds Review
Automation

git-trunk-based-workflow

No summary provided by upstream source.

Repository SourceNeeds Review
General

Jimeng AI Image Generation

即梦 AI 图片生成技能(火山引擎图片生成 4.0)。当用户想要 AI 生成图片、文生图、图生图、 字体设计、海报制作时使用。支持场景: - "帮我生成一张图片:..." - "用即梦画一张 16:9 的科技感壁纸" - "字体设计:新年快乐,红色背景" - "把这张图的背景换成星空" - "生成一组表情包" -...

Registry SourceRecently Updated
octivi-bash-boilerplate | V50.AI