gh-project-shared
Skill4 starsChanged 7 months agoMITView on GitHub
Shared utilities for GitHub project management. Not directly invoked by agents. Provides: gh CLI validation, authentication checking, config file management (.github/project-config.json), context detection for template suggestions, and error handling with logging.
- Installs packages
In this repository124 other files it gives its agents.
- apple-contactsSkill
- atlassian-cli-jiraSkill
- bellardSkill
- brainstormingSkill
- career-interviewSkill
- carmackSkill
- cavecrewSkill
- caveman-commitSkill
- caveman-compressSkill
- caveman-helpSkill
- caveman-reviewSkill
- cavemanSkill
- caveman-statsSkill
- ci-watchSkill
- clone-configSkill
- cloudflare-emailSkill
- course-correctSkill
- datastar-patternsSkill
- datastarSkill
- datastar-taoSkill
- defuddleSkill
- description-linterSkill
- deterministic-simulation-testingSkill
- dispatching-parallel-agentsSkill
- dopplerSkill
- dx-auditSkill
- evolution-changelogSkill
- evolution-engineSkill
- executing-plansSkill
- farleySkill
- finishing-a-bones-leafSkill
- frontend-component-decision-treesSkill
- gh-project-charterSkill
- gh-project-operationsSkill
- gh-project-setupSkill
- goal-completeSkill
- golang-patternsSkill
- hellandSkill
- hickeySkill
- hippSkill
- investigating-agent-sessionsSkill
- landingSkill
- linear-cliSkill
- linear-methodSkill
- memorizeSkill
- midscene-testingSkill
- monitoring-the-operatorSkill
- normanSkill
- obsidian-basesSkill
- obsidian-canvasSkill
- obsidian-markdownSkill
- orchestrator-modeSkill
- orchestrator-suitSkill
- ousterhoutSkill
- pikchr-generatorSkill
- pocock-cavemanSkill
- pocock-diagnoseSkill
- pocock-git-guardrailsSkill
- pocock-handoffSkill
- pocock-setup-pre-commitSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
2 rules. About 0 are common, 0 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 51
Read/write .github/project-config.json configuration file.
- Very specific: line 142
All scripts use set -e to exit on errors
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 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.
Files
GitHub Project Management - Shared Utilities
Purpose: Common utilities used by gh-project-setup, gh-project-operations, and gh-project-charter skills.
Not directly invocable: This skill provides shared scripts. Agents should invoke the specific skills (setup, operations, charter) instead.
Utilities Provided
gh-check.sh
gh CLI installation verification.
Functions:
check_gh_installed- Verify gh CLI is installed and check version
Usage:
source scripts/gh-check.sh
check_gh_installed || exit 1gh-auth.sh
gh CLI authentication and scope verification.
Functions:
check_gh_authenticated- Verify gh auth statuscheck_project_scope- Verify project scope in token
Usage:
source scripts/gh-auth.sh
check_gh_authenticated || exit 1
check_project_scope || exit 1config-manager.sh
Read/write .github/project-config.json configuration file.
Functions:
get_project_id <project_num>- Get project IDget_project_config <project_num>- Get full project configsave_project_config <json_data>- Save/update project configvalidate_config_file- Validate JSON structureget_field_id <project_num> <field_name>- Get field IDget_field_option_id <project_num> <field> <option>- Get option ID
Usage:
source scripts/config-manager.sh
PROJECT_ID=$(get_project_id 1)
PRIORITY_FIELD=$(get_field_id 1 "priority")
HIGH_OPTION=$(get_field_option_id 1 "priority" "high")context-detector.sh
Analyze repository and conversation to suggest appropriate project template.
Functions:
detect_repo_type- Analyze repo structure, return indicators as JSONscore_templates <conversation>- Score all 6 templates 0-100recommend_template <conversation>- Get recommendation with reasoning
Templates scored:
- kanban (simple task tracking)
- bug-tracker (issue triage)
- feature-development (product work)
- release-planning (version management)
- roadmap (strategic planning)
- research (technical investigation)
Usage:
source scripts/context-detector.sh
RECOMMENDATION=$(recommend_template "working on release planning")
TEMPLATE=$(echo "$RECOMMENDATION" | jq -r '.recommendation')error-handler.sh
Error logging and structured error output for agent parsing.
Functions:
log_error <message>- Append to.github/project-errors.loghandle_error <code> <message> <context>- Log and exitoutput_error <category> <message> <action>- Format for agentrequire_prerequisite <check> <error> <guide>- Check with guidance
Usage:
source scripts/error-handler.sh
require_prerequisite "command -v gh" \
"gh CLI not installed" \
"Install: brew install gh"Dependencies
- bash 4.0+
- jq (JSON processor)
- gh CLI v2.89.0+ (for actual operations, not testing)
- git
Testing
Unit tests in tests/unit/:
- test-gh-check.sh
- test-gh-auth.sh
- test-config-manager.sh
- test-context-detector.sh
- test-error-handler.sh
Integration tests in tests/integration/ test cross-skill workflows.
Error scenario tests in tests/error-scenarios/ test recovery flows.
Run all tests:
cd tests
./run-tests.shConfiguration Files
Input: .github/project-config.json (managed by config-manager.sh)
Output: .github/project-errors.log (managed by error-handler.sh)
Safety
- All scripts use
set -eto exit on errors - Prerequisites checked before operations
- Config file validated before reading
- Errors logged with timestamps for debugging
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
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.

