agentleFS
kecoma1kecoma1/MQL5-SKILLS/skills/forge/SKILL.md

forge

Skill17 starsChanged 7 months agoMITView on GitHub

Work with Forge-hosted Git repositories from this workspace, including login, staged commits, and push workflows. Use when Codex needs to prepare or send commits to Forge or Forgejo remotes such as forge.mql5.io, refresh credentials, inspect Git status, or write commit messages that follow Conventional Commits like feat(rsi): summary.

  • Commits and pushes

78 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use forge-ship, forge-review and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • redteamlifeSkill

    forge-ship

    Use when the user asks to merge, release, promote, reconcile, or close out work in a repo containing `docs/forge/` or governed by FORGE. Not for per-task commits; those complete inside forge-execute-task.

    Also in 6 projects that use this

  • tonmoy007Skill

    forge-review

    Run a multi-dimensional parallel code review over the current change.

    Also in 8 projects that use this

  • weselbenSkill

    forge-docs

    Load before code changes, before writing docs or an ADR, when a user question exposes a missing how-to, and when closing a chunk of work; also loaded by forge after each squash-merge and by deep-research after a report.

    Also in 3 projects that use this

  • DailenGSkill

    forge-design

    Design, UX, and polish discipline for the forge lifecycle. Covers the design tier, the design brief in docs/DESIGN.md, UX requirements and their verification methods, the per-slice design pass, the UX defect register, and the release polish pass. Load whenever work touches a user-facing surface (GUI, terminal, library API, or operated service), whenever a UX observation needs disposing of, and whenever a release is in reach.

    Also in 3 projects that use this

  • DshamirSkill

    forge-plan

    Takes analysis.json + budget cap → derives the full phase sequence, hyperparameters, instance type, cost estimate, and acceptance thresholds. Emits plan.md (the single human gate document) and plan.json (the machine-readable spec that dispatch-v2 consumes). Refuses to plan if estimated cost exceeds budget×1.2.

    Also in 4 projects that use this

  • tonmoy007Skill

    forge-build

    Run Stage 6 of the Forge pipeline — implementation. Use when the user says

    Also in 3 projects that use this

The file

Show its rules and text

We split this skill into the rules it gives an agent

18 rules. 0 are common, 15 are distinctive, and 3 are very specific to this project.

  • 0

    Common

    Most of the 67 edited versions we read keep these.

  • 15

    Distinctive

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  • could be automatic: a setting could enforce it
  1. Distinctive:

    Use this skill when the task involves committing or pushing code to a Forge remote from this workspace.

    line 10
  2. Distinctive:

    Follow a tight workflow: inspect status, stage only intended files, review the staged diff, write a Conventional Commit message, commit, …

    line 12
  3. Distinctive:

    Write the commit message using Conventional Commits.

    line 23
  4. Distinctive:

    If push fails due to credentials, fix login first and retry the same push.

    line 26
  5. Distinctive:

    Use short lowercase summaries in imperative style.

    line 36
  6. Distinctive:

    Always include a scope when a clear subsystem exists.

    line 57
  7. Very specific:

    Use the EA, feature, or folder as scope when possible, such as rsi, forge, backtest, skills, premiere.

    line 58
  8. Distinctive:

    Keep the summary specific and under roughly 72 characters when practical.

    line 59
  9. Very specific:

    Avoid vague subjects like update stuff or changes.

    line 60
  10. Distinctive:

    When pushing for the first time, or when credentials expired:

    line 87
  11. Distinctive:

    If Git Credential Manager prompts for credentials, use:

    line 95
  12. Distinctive:

    If push fails with an authentication error, state the exact error and do not invent success.

    line 102
  13. Distinctive:

    If Forge credentials are stale, remove the old credential from Windows Credential Manager or let Git Credential Manager replace it on the …

    line 106
  14. Distinctive:

    Never commit unrelated modified or deleted files just to get a clean tree.

    line 125
  15. Distinctive:

    Never use git add . in a dirty repo unless the user explicitly wants everything.

    line 126
  16. Very specific:

    Prefer explicit paths in git add -- <paths>.

    line 127
  17. Distinctive:

    If the repo contains unrelated user changes, commit only the files for the current task.

    line 128
  18. Distinctive:

    Before pushing, confirm the staged file list matches the intended task.

    line 129

“Common” is measured: kept by at least 6 in 10 of the 67 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Forge

Overview

Use this skill when the task involves committing or pushing code to a Forge remote from this workspace.

Follow a tight workflow: inspect status, stage only intended files, review the staged diff, write a Conventional Commit message, commit, and push to the Forge remote.

Required workflow

  1. Inspect the repo state with git status --short.
  2. Identify unrelated local changes and do not touch them unless the user explicitly asks.
  3. Stage only the files that belong to the current task.
  4. Review the staged diff before committing:
    • git diff --cached --name-only
    • git diff --cached --stat
    • git diff --cached -- <path>
  5. Write the commit message using Conventional Commits.
  6. Commit with git commit -m "type(scope): summary".
  7. Push with git push origin <branch>.
  8. If push fails due to credentials, fix login first and retry the same push.

Commit convention

Use this format:

type(scope): summary

Use short lowercase summaries in imperative style.

Example:

feat(rsi): add stop loss and take profit optimization

Preferred types:

  • feat
  • fix
  • docs
  • chore
  • refactor
  • test
  • perf
  • build
  • ci
  • revert

Rules:

  • Always include a scope when a clear subsystem exists.
  • Use the EA, feature, or folder as scope when possible, such as rsi, forge, backtest, skills, premiere.
  • Keep the summary specific and under roughly 72 characters when practical.
  • Avoid vague subjects like update stuff or changes.

Login to Forge in this workspace

This workspace uses:

git config --get credential.helper
manager

That means Git Credential Manager handles stored credentials on Windows.

The current remote pattern is:

https://forge.mql5.io/<user>/<repo>.git

Example from this repo:

https://forge.mql5.io/<user-id>/mql5.git

Authentication workflow

When pushing for the first time, or when credentials expired:

  1. Run:
git push origin main
  1. If Git Credential Manager prompts for credentials, use:
    • Forge username
    • Forge personal access token or valid password, whichever the Forge server accepts
  2. Let Git Credential Manager store the credential.
  3. Retry the push if needed.

If push fails with an authentication error, state the exact error and do not invent success.

Refreshing bad credentials

If Forge credentials are stale, remove the old credential from Windows Credential Manager or let Git Credential Manager replace it on the next prompt.

Useful checks:

git remote -v
git branch --show-current
git config --get credential.helper
git credential-manager --version

If needed, retry:

git push origin main

Safe commit behavior

  • Never commit unrelated modified or deleted files just to get a clean tree.
  • Never use git add . in a dirty repo unless the user explicitly wants everything.
  • Prefer explicit paths in git add -- <paths>.
  • If the repo contains unrelated user changes, commit only the files for the current task.
  • Before pushing, confirm the staged file list matches the intended task.

Example workflow

git status --short
git add -- skills/forge/SKILL.md skills/forge/agents/openai.yaml
git diff --cached --name-only
git commit -m "feat(forge): add forge commit workflow skill"
git push origin main

Final reporting

When finishing, report:

  • the commit hash
  • the commit message
  • whether push succeeded
  • any authentication issue that still blocks the push

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.