agentleFS
danwykesdevdanwykesdev/skills/github/SKILL.md

saas-github

Skill0 starsChanged 6 months agoMITView on GitHub

Prepare a halfway local Product OS project for GitHub, create or connect a private repo, establish the baseline branch, audit open PRs, and define branch/PR workflow for future features.

  • Reads credentials
  • Commits and pushes

The file

Show its rules and text

We split this skill into the rules it gives an agent

22 rules. About 0 are common, 20 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈20

    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
  • could be automatic: a setting could enforce it
  1. Distinctive:

    Use this skill when the user wants to move a local Product OS project into GitHub, clean up halfway project state, or align branches/PRs …

    line 8
  2. Distinctive:

    Create or connect a private GitHub repository.

    line 14
  3. Distinctive:

    Do not expose or print real secrets.

    line 22
  4. Very specific:

    Do not commit .env, .env.*, .dev.vars, local databases, uploads, generated artefacts, or cache directories.

    line 23
  5. Distinctive:

    Do not delete branches or close PRs without a clear classification.

    line 24
  6. Distinctive:

    Do not rewrite history unless the user explicitly requests it.

    line 25
  7. Distinctive:

    If the GitHub repository is empty and the local project is the desired baseline, push local main as the baseline.

    line 26
  8. Distinctive:

    If there are existing open PRs, classify them before suggesting merge/close.

    line 27
  9. Distinctive:

    If no GitHub MCP is available, use GitHub CLI commands as the fallback.

    line 28
  10. Distinctive:

    Before creating or pushing:

    line 32
  11. Distinctive:

    Check for accidental secrets:

    line 42
  12. Distinctive:

    If any real secret/local persistence files appear, stop and recommend adding/removing from Git tracking before pushing.

    line 49
  13. Distinctive:

    If no remote exists:

    line 53
  14. Distinctive:

    If the repo name should be under an organisation:

    line 64
  15. Distinctive:

    If an empty GitHub repo already exists:

    line 70
  16. Distinctive:

    If a remote already exists:

    line 80
  17. Distinctive:

    Treat the current local state as the baseline if it represents the best current truth.

    line 93
  18. Distinctive:

    Do not attempt to reconstruct historical PRs.

    line 94
  19. Very specific:

    Run $saas-check immediately after pushing.

    line 96
  20. Distinctive:

    Start branch/PR tracking from the next feature forward.

    line 97
  21. Distinctive:

    After the repo exists:

    line 101
  22. Distinctive:

    If safe and approved:

    line 128

≈ “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.

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

SaaS Product OS GitHub Skill

Use this skill when the user wants to move a local Product OS project into GitHub, clean up halfway project state, or align branches/PRs with specs and feature completion.

Primary goals

  1. Protect secrets and local-only files before the first push.
  2. Confirm .gitignore, .env.example, and .dev.vars.example exist.
  3. Create or connect a private GitHub repository.
  4. Push the current local project as the baseline.
  5. Audit current branches and PRs.
  6. Close stale PRs only after explaining why.
  7. Establish the future feature branch/PR workflow.

Safety rules

  • Do not expose or print real secrets.
  • Do not commit .env, .env.*, .dev.vars, local databases, uploads, generated artefacts, or cache directories.
  • Do not delete branches or close PRs without a clear classification.
  • Do not rewrite history unless the user explicitly requests it.
  • If the GitHub repository is empty and the local project is the desired baseline, push local main as the baseline.
  • If there are existing open PRs, classify them before suggesting merge/close.
  • If no GitHub MCP is available, use GitHub CLI commands as the fallback.

Required audit

Before creating or pushing:

pwd
git status --short
git rev-parse --is-inside-work-tree
git branch --show-current
ls -la .gitignore .env.example .dev.vars.example 2>/dev/null || true

Check for accidental secrets:

git status --short
find . -maxdepth 3 \( -name ".env" -o -name ".env.*" -o -name ".dev.vars" -o -name "*.sqlite" -o -name "*.sqlite3" -o -name "*.db" \) -not -name ".env.example" -not -name ".dev.vars.example" -print

If any real secret/local persistence files appear, stop and recommend adding/removing from Git tracking before pushing.

Private repo creation flow

If no remote exists:

git init
git branch -M main
git add .
git commit -m "Initial ProspectPro project baseline"
gh auth login
gh repo create prospectpro --private --source=. --remote=origin --push

If the repo name should be under an organisation:

gh repo create ORG_NAME/prospectpro --private --source=. --remote=origin --push

If an empty GitHub repo already exists:

git remote add origin git@github.com:OWNER/prospectpro.git
git branch -M main
git add .
git commit -m "Initial ProspectPro project baseline"
git push -u origin main

If a remote already exists:

git remote -v
git status --short
git branch --show-current
git push -u origin main

Halfway project baseline rule

For a project that is already partly built locally:

  • Treat the current local state as the baseline if it represents the best current truth.
  • Do not attempt to reconstruct historical PRs.
  • Push the baseline to main.
  • Run $saas-check immediately after pushing.
  • Start branch/PR tracking from the next feature forward.

PR audit

After the repo exists:

gh pr list --state open --json number,title,headRefName,baseRefName,isDraft,mergeStateStatus,updatedAt,url

For each open PR:

gh pr view PR_NUMBER --comments
gh pr checks PR_NUMBER
gh pr diff PR_NUMBER

Classify each PR as:

  • Keep and continue
  • Merge after review
  • Close as superseded
  • Needs user decision

Close stale/superseded PRs with a comment:

gh pr close PR_NUMBER --comment "Closing as superseded by the current Product OS baseline. Future feature work will be tracked through feature branches and PRs."

If safe and approved:

gh pr close PR_NUMBER --delete-branch --comment "Closing as superseded by the current Product OS baseline. Future feature work will be tracked through feature branches and PRs."

Future feature workflow

For every new feature:

git checkout main
git pull
git checkout -b feature/FEATURE_NUMBER-feature-name

Run:

Use the $saas-feature-cycle skill for FEATURE_NUMBER-feature-name.
Tie all work to the current branch and PR.

Push and open PR:

git push -u origin feature/FEATURE_NUMBER-feature-name
gh pr create --title "Feature FEATURE_NUMBER: Feature name" --body-file specs/FEATURE_NUMBER-feature-name/pr-summary.md

Completion logic

A feature can be marked done only when:

  • The branch matches the feature.
  • There is a PR or an explicit local-only exception.
  • The spec, plan, tasks, and implementation are aligned.
  • GitHub checks are passing or exceptions are documented.
  • Security/tenancy checks are completed.
  • The PR summary lists completed tasks and changed files.
  • $saas-review passes or all required changes are resolved.

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.