smartcontractkit/chainlink/optimize-workflow
Claude Code and agent skill by smartcontractkit/chainlink
Trust tier 2
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
Optimize CI runners and workflow structure for speed, simplicity, stability, and cost.
Install
npx vskill@latest install smartcontractkit/chainlink/optimize-workflowSKILL.md
The same SKILL.md was published earlier as smartcontractkit/chainlink/optimize-workflow.
<initialization>
- Confirm missing inputs: target workflow, scope, priorities (default: stability > speed > cost).
- Setup baseline:
- Analyze target workflow (runners, caching, bottlenecks, critical path).
- Setup test workflow (add
workflow_dispatch, mock inputs if needed). - Init/resume trial log:
.github/.agents/skills/optimize-workflow/trials/[workflow]/summary.md. - Record baseline run metrics.
</initialization>
<git_workflow> To prevent index/branch lock conflicts:
- Do NOT checkout local trial branches.
- Push trial commits directly from working branch to remote refs:
git push -f origin HEAD:refs/heads/trial/[trial-name]
- Delete remote trial refs on cleanup:
git push origin --delete trial/[trial-name]
</git_workflow>
<constraints>
- Git: Direct ref pushes only. No local branch switching during trials.
- Runners: Prefer
ubuntu-latest. Useruns-onfor larger runners (verify API first). - Scope: One change per trial. Keep cache status identical across comparison runs.
- Validation: Lint YAML (
actionlintor dry-run) before pushing. - Tools: Use
ghCLI and workflow scripts for monitoring/comparisons.
</constraints>
<tools>
- Monitor:
python3 .github/.agents/skills/optimize-workflow/scripts/workflow_monitor.py [run_id] [trial-name] - Outputs
report.json,report.md, and runner logs to.github/.agents/skills/optimize-workflow/trials/[workflow]/[trial-name]/ - Quick analysis: Inspect
## Longest Jobs (Bottlenecks)inreport.mdor queryjq '.slowest_jobs[] | select(.is_outlier)' report.json/jq '([.jobs[].duration_seconds] | add / length) as $avg | .jobs[] | select(.duration_seconds > $avg * 1.5)' report.json. - Compare:
python3 .github/.agents/skills/optimize-workflow/scripts/workflow_compare.py [trial-1] [trial-2] - Outputs
.github/.agents/skills/optimize-workflow/trials/[workflow]/[trial-1]-[trial-2]-comparison.md
</tools>
<resources>
</resources>
<loop>
- Define single-variable trial and prompt for user approval.
- Push commit to remote ref:
git push -f origin HEAD:refs/heads/trial/[trial-name]. - Trigger run:
gh workflow run --ref trial/[trial-name]. - Monitor run with
workflow_monitor.py. - Compare with
workflow_compare.pyagainst baseline/previous trial. - Update trial log in
summary.md. Include before/after diagram if structure changed. - Present condensed result to user; prompt for next trial or completion.
<trial-template>
| Runner | Structure | Experiment | Expectation | Branch | Run ID | Commit | Stability | Runtime | Cost | Notes | |
|---|---|---|---|---|---|---|---|---|---|---|---|
config | cached/parallel | Tested change | Expected impact | trial/... | id | sha | Pass/Fail | mm:ss | $ | Notes |
</trial-template> </loop>
<complete trigger="User stops loop or all trials done">
- Recommend final configuration.
- Output PR summary table and before/after Mermaid diagrams:
- Clean up debug code. Make final edits on working branch. Ask user to commit.
- Delete remote trial branches (
git push origin --delete trial/[trial-name]) and temporary files.
</complete>
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryChecking.github/.agents/skills/optimize-workflow/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/smartcontractkit/chainlink/optimize-workflow)