agentleFS
ordinary9843ordinary9843/claude-gitizens/skills/status/SKILL.md

status

Skill0 starsChanged 5 months agoMITView on GitHub

Show the current state of the Gitizens nation and all open proposals. Must output === CHECK OK. Parse the JSON. Store as STATE. For each category (institutions, districts, buildings, sectors), run: Extract the count field from each. If the result has a non-empty title, an event is active. Extract title, fired_at, duration_hours, response_hint. Output in this format: For each open proposal, calculate hours remaining: hours_left = 24 - (now - createdAt).total_seconds() / 3600 If hours_left <= 0, mark as "Tallying…

177 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use off, list 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.
  • StakeholderSenseiSkill

    off

    Disable polygraph for this repo (user-only escape hatch; all hooks no-op)

    Also in 4 projects that use this

  • SuShuhengSkill

    list

    Use when checking obshare-cli upload history, finding document tokens, or reviewing previous upload URLs and permission snapshots.

    Also in 8 projects that use this

  • kennethleungtySkill

    pause

    Pause — stop the music (alias for /stop)

    Also in 6 projects that use this

  • codebycoreySkill

    new

    Start a new change with a proposal. Use when starting a feature, creating a proposal, or beginning planned work.

    Also in 7 projects that use this

  • michaelenglandSkill

    import

    This skill should be used when the user wants to import an existing .pptx file into deckwright, bring in a PowerPoint that was created outside this tool, reverse-engineer a presentation for editing, or invoke /deckwright:import. Converts a .pptx into a PptxGenJS generation script so it can be edited and regenerated through the deckwright pipeline.

    Also in 5 projects that use this

  • genomewalkerSkill

    resume

    Resume a thread by loading its ~800-token context capsule

    Also in 15 projects that use this

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 146 edited versions we read keep these.

  • 0

    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
  1. Very specific:

    If the result has a non-empty title, an event is active.

    line 48
  2. Very specific:

    If hours_left <= 0, mark as "Tallying soon".

    line 106
  3. Very specific:

    Use python3 base64 decode instead of base64 -d for cross-platform compatibility.

    line 111

“Common” is measured: kept by at least 6 in 10 of the 146 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

Skill: gitizens:status

Show the current state of the Gitizens nation and all open proposals.

Setup

GITIZENS_REPO="ordinary9843/gitizens"

Steps

Step 1 — Check GitHub CLI access

bash scripts/check-access.sh

Must output === CHECK OK.

Step 2 — Fetch world state

gh api repos/ordinary9843/gitizens/contents/world/state.json \
  --jq '.content' | python3 -c "import sys,base64; sys.stdout.write(base64.b64decode(sys.stdin.read().strip()).decode())"

Parse the JSON. Store as STATE.

Step 3 — Fetch entity counts

For each category (institutions, districts, buildings, sectors), run:

gh api repos/ordinary9843/gitizens/contents/world/entities/{category}/_index.json \
  --jq '.content' | python3 -c "import sys,base64; sys.stdout.write(base64.b64decode(sys.stdin.read().strip()).decode())"

Extract the count field from each.

Step 4 — Fetch active event (if any)

gh api repos/ordinary9843/gitizens/contents/world/active_event.json \
  --jq '.content' | python3 -c "import sys,base64; sys.stdout.write(base64.b64decode(sys.stdin.read().strip()).decode())"

If the result has a non-empty title, an event is active. Extract title, fired_at, duration_hours, response_hint.

Step 5 — Fetch open proposals

gh issue list \
  --repo "ordinary9843/gitizens" \
  --label "proposal" \
  --state "open" \
  --json "number,title,createdAt,reactions" \
  --limit 20

Step 6 — Display

Output in this format:

=== GITIZENS WORLD STATE ===

Era:            {state.era}
Laws enacted:   {state.laws_count}
Treasury:       {state.treasury} Git Coins
Population:     {state.population}
Stability:      {state.stability}/100
Pollution:      {state.pollution}/100

Policy metrics:
  Education:    {state.education}/100
  Industry:     {state.industry}/100
  Welfare:      {state.welfare}/100
  Green Policy: {state.green_policy}/100
  Defense:      {state.defense}/100

Structures:  {institutions} institutions | {buildings} buildings | {districts} districts | {sectors} sectors

World summary: {state.world_summary}

🌐 Live city: https://ordinary9843.github.io/gitizens/

⚡ ACTIVE EVENT: {title}                   ← only if event active
   Respond by passing any law within 4h of {fired_at}
   Hint: {response_hint}

=== OPEN PROPOSALS ({count}) ===

#{number}  {title}
  Opened: {createdAt}  |  Votes: {+1}👍 {-1}👎
  Closes in: {hours_left}h  |  https://github.com/ordinary9843/gitizens/issues/{number}

No open proposals.  (if none)

Step 7 — Time remaining

For each open proposal, calculate hours remaining: hours_left = 24 - (now - createdAt).total_seconds() / 3600

If hours_left <= 0, mark as "Tallying soon".

Notes

  • Reactions: use reactions["+1"] and reactions["-1"] from the JSON.
  • Use python3 base64 decode instead of base64 -d for cross-platform compatibility.
  • The world ticks every 4 hours automatically — treasury, population, stability all change.

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.