Oma dev workflow

From gracefullight/stock-checker · View interactive version

Oma dev workflow is an AI agent skill from the GitHub repository gracefullight/stock-checker. Configure development tasks, git hooks, CI/CD, or release automation. Use when creating or fixing a repository development workflow.

How to use this skill

Skill file

Dev Workflow - Monorepo Task Automation Specialist

Scheduling

Goal

Set up, run, optimize, and troubleshoot reproducible development workflows using mise, language-specific checks, commitlint, validation pipelines, CI/CD, migrations, i18n builds, and release coordination.

Intent signature

When to use

When NOT to use

Expected inputs

Expected outputs

Dependencies

Structural Flow

Transitions

Failure and recovery

Exit

Logical Operations

Canonical command path

  1. Identify the affected apps/packages and the requested workflow outcome. Inspect affected app manifests, lockfiles, tool configs, mise.toml, CI, hooks, env patterns, and any stack/stack.yaml. Read task definitions and use mise tasks --all to discover existing commands. Determine whether tasks can run in parallel or must be sequential.
  2. For setup or tool changes, load the selected tooling profiles from References. Configure missing dependencies, settings, and tasks with the detected package manager; preserve existing tool choices. For checks alone, skip setup.
  3. Expose applicable checks as lint, format:check, and typecheck; keep mutating format separate. A check task can aggregate non-emitting checks. Connect existing stack verify.syntax.cmd to that task without adding unsupported schema keys; preserve verify.tests and domain-specific scans.
  4. For hook/CI setup, load the validation pipeline. Provision locked local tools first, preserve the existing hook manager, and connect commitlint to the local commit-msg hook. Staged lint stays on pre-commit. Typecheck the whole affected app on the push gate when commit time is the constraint. Configure CI for app checks and tests; integration tests stay out of default hooks and required CI (Guardrails).
  5. Before relaunching local validation, follow the validation pipeline's repeated-run guidance. A skipped run is not a pass. Run the configured mise run check aggregate, or the applicable individual lint, format:check, and typecheck tasks, plus the relevant hermetic tests. Do not start Docker or external services for validation. Run each underlying checker once. Use mise run //{path}:{task} for configured monorepos; typecheck the complete affected app rather than individual changed files. Check exit codes, logs, generated artifacts, and CI compatibility.
  6. Report the selected tools, commands, checks passed, and any unavailable or inapplicable checks. Include command status, duration, failures, and next steps. Builds remain subject to the execution policy.

Resource scope and effects

Reads and edits mise.toml, CI configs, hook configs, scripts, and env templates. Running tasks may start dev servers (which occupy ports), run tests or builds, generate clients, or run migrations; they write build outputs, generated clients, and logs, and consume CPU and time.

Guardrails

  1. Use mise run tasks instead of direct package manager commands. Discover them with mise tasks --all; never assume a task exists
  2. Run mise install after pulling changes or toolchain updates that change runtime versions
  3. Read a task's definition and dependencies before running an unfamiliar task or modifying mise.toml
  4. Use parallel tasks (mise run lint, mise run test) for independent operations. Cap concurrency when a measurement shows more workers slow the same suite
  5. Run lint and test on changed scope, and configure CI to skip unchanged apps. Keep a repository selector that already fails closed on shared or unknown paths; do not replace it with the generic affected-checks helper
  6. Validate commit messages with commitlint before committing
  7. Run the pre-commit validation pipeline for staged files only, and never commit past a failing staged lint. Typecheck the whole affected app on the push gate when doing it on every commit would dominate commit time
  8. Check task output and exit codes, and investigate the root cause of a failure instead of ignoring it
  9. Document task dependencies in mise.toml comments and use consistent task naming conventions across apps
  10. Enable mise in CI/CD pipelines and pin runtime versions in mise.toml for reproducible runs
  11. Try new or changed tasks locally before committing CI/CD changes that depend on them
  12. Never fetch packages from a Git hook. When a mise task already runs a checker, call that task. A hook running under mise exec may call the pinned local binary directly
  13. Never run dev servers without checking port availability first
  14. Never hardcode secrets in mise.toml files
  15. Never run destructive tasks (clean, reset) without confirmation
  16. Always quote task names containing : in mise.toml ([tasks."lint:changed"]) — unquoted colons fail TOML parsing
  17. Always set monorepo_root = true (plus [monorepo].config_roots) in the root mise.toml before using //path:task syntax
  18. Keep check tasks non-mutating; run format/fix tasks only within the requested edit scope, and never rewrite unstaged changes from a Git hook
  19. Prefer hermetic tests: do not introduce tests that need Docker, containers (including testcontainers), or external services. If unavoidable, isolate them in a separate opt-in integration task, document the dependency, and keep that task out of git:pre-commit, git:pre-push, validate:changed, and required CI gates

References

| Resource | Load when |

|----------|-----------|

| resources/mise-basics.md | Installing or verifying mise, monorepo layout and root config, task syntax and dependencies, env templates, report templates |

| resources/tooling-profiles.md | Configuring or changing Python, JS/TS, Dart/Flutter, Dockerfile, or commitlint tooling |

| resources/validation-pipeline.md | Git hooks, CI/CD, change-based testing, repeated local validation |

| resources/example-task-wiring.md | Wiring migrations, optional local Docker infra (not a test dependency), API client generation, or i18n builds into tasks |

| resources/release-coordination.md | Versioning, changelog, releases |

| resources/troubleshooting.md | A task is missing, hangs, or fails on runtime, port, or configuration problems |

| ../_shared/core/clarification-protocol.md | A missing fact changes the outcome |

| ../_shared/core/difficulty-guide.md | Unresolved scope or dependencies |

Knowledge Reference

mise, task runner, monorepo, dev server, lint, format, test, typecheck, build, deployment, ci/cd, parallel execution, workflow, automation, tooling

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.