agentleFS
swiss-knife-xyzswiss-knife-xyz/swiss-knife/.agents/skills/update-contributors/SKILL.md

update-contributors

Skill266 starsChanged 10 days agoMITView on GitHub

Refresh generated homepage contributor data for swiss-knife from real Git/GitHub history. Use when Codex needs to update components/HomePage/SupportersPage/data/contributors.json, keep contributor counts current across master and v2, replace dummy contributor data, or verify contributor leaderboard data before committing homepage/supporters changes.

  • Reads credentials

2 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

8 rules. About 0 are common, 4 are distinctive, and 4 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈4

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 4

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Run the updater from the repository root:

    line 10
  2. Distinctive:

    Run normal project checks:

    line 22
  3. Very specific:

    Commit contributors.json only when the generated data looks correct.

    line 29
  4. Very specific:

    Use Git commit history as the count source, not placeholder donations or manual ETH amounts.

    line 33
  5. Very specific:

    Use GitHub profile metadata only for avatar/profile URLs.

    line 35
  6. Distinctive:

    Do not hand-edit contribution counts.

    line 61
  7. Distinctive:

    Do not reintroduce fake supporter/sponsor data into this generated contributor file.

    line 62
  8. Very specific:

    Keep output schema compatible with ContributorsLeaderboard.tsx: rank, login, avatar, contributions, profileUrl.

    line 63

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “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

Update Contributors

Workflow

  1. Run the updater from the repository root:
python3 .agents/skills/update-contributors/scripts/update_contributors.py
  1. Review the generated diff:
git diff -- components/HomePage/SupportersPage/data/contributors.json
  1. Run normal project checks:
pnpm exec tsc --noEmit
pnpm exec prettier --check components/HomePage/SupportersPage/data/contributors.json
  1. Commit contributors.json only when the generated data looks correct.

Data Source

Use Git commit history as the count source, not placeholder donations or manual ETH amounts. The default branch set is origin/master and origin/v2; if remote refs are missing, the script falls back to local master and v2.

Use GitHub profile metadata only for avatar/profile URLs. The script uses gh auth token or GITHUB_TOKEN when available, and falls back to public https://github.com/{login}.png avatar URLs if API lookup fails.

Identity Aliases

The updater normalizes common local Git author identities to GitHub logins. If output contains a non-GitHub-looking author name, update the DEFAULT_ALIASES map in scripts/update_contributors.py, rerun the script, and validate the diff again.

For noreply emails like 123+login@users.noreply.github.com, the script extracts login automatically.

Useful Options

# Include a different number of contributors.
python3 .agents/skills/update-contributors/scripts/update_contributors.py --limit 30

# Use explicit refs.
python3 .agents/skills/update-contributors/scripts/update_contributors.py --branches origin/master origin/v2 HEAD

# Write somewhere else for inspection.
python3 .agents/skills/update-contributors/scripts/update_contributors.py --output /tmp/contributors.json

# Skip fetching remote refs.
python3 .agents/skills/update-contributors/scripts/update_contributors.py --no-fetch

Constraints

  • Do not hand-edit contribution counts.
  • Do not reintroduce fake supporter/sponsor data into this generated contributor file.
  • Keep output schema compatible with ContributorsLeaderboard.tsx: rank, login, avatar, contributions, profileUrl.

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.