Index of every page on this site: llms.txt
All skills
saadaan-hassan avatar

/project-baseline-setup

@4a1a53e
Run it yourself

Scaffolds a new project with baseline engineering hygiene (README, .env.example, .gitignore covering secret files, a dependency lockfile check, an architecture-decision-record folder) and a lightweight security checklist, OR audits an existing project for what's missing and fills only the gaps. Safe to run on a brand-new empty repo or on a project someone else started, it detects what already exists and never overwrites real content. Use whenever the user says "set up a new project", "scaffold this repo", "start a new service", "add the baseline to this project", "audit this repo for missing setup", or "I just joined this project and want to check what's missing".

Use this Skill: https://skilld.dev/gh/saadaan-hassan/baseline-skills/project-baseline-setup

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

SKILL.md

≈174 tokens for metadata: the name and description. ≈986 when used: this file. ≈673 more on demand in 1 file.

Description uses 8.7% of example budget

Before choosing a Skill, your Agent reads its name and description. All available Skills share that space.

  • A shorter description leaves more room for other Skills. This entry exceeds our 1% size suggestion.

In our Claude Code example, all Skill names and descriptions share 8,000 characters. This Skill uses ≈697 characters, or 8.7%.

The 1% threshold is a size suggestion. Longer descriptions can still fit.

Your model, settings, and other Skills decide how much text your Agent can read.

Example settings and source

The example uses a 200k-token context and default Claude Code settings. The count includes the name, description, separators, and when_to_use when present. Codex also counts local file paths.

Skit's source and limits: Codex 0.160.1, Claude Code 2.1.292.

Project Baseline Setup

One skill, two situations: a project that doesn't exist yet, and a project that already exists but was never fully set up. Both are the same underlying job, find what's missing against a small set of engineering and security basics, and fill it in without disturbing anything that's already there.

Step 1: scan first, always

Run the bundled scanner before creating or changing anything:

python3 <skill_dir>/scripts/scan_baseline.py <project_path>

It prints a JSON report: what project type it detected (from manifest files like package.json, pyproject.toml, go.mod), and a missing list of concrete gaps. It never modifies anything, it's a report.

Read the missing list. If it's empty, say so and stop, don't invent work.

Step 2: fix the mechanical gaps directly

These are safe to create or fix without asking, because there's no real content decision involved:

  • .gitignore missing secret patterns: append the missing patterns (.env, *.pem, *.key, etc.) to the existing file, don't replace it.
  • docs/adr/ directory missing: create it with a one-line README.md explaining what an ADR is and a numbered template (0000-template.md: Context / Decision / Consequences / Status).
  • BASELINE_CHECKLIST.md missing: copy assets/BASELINE_CHECKLIST_TEMPLATE.md into the project root as BASELINE_CHECKLIST.md, filling in the project name from context if you can infer it (e.g. from package.json's name field).
  • Lockfile missing but a manifest exists: don't generate one yourself (that requires actually installing dependencies), tell the user which command to run (npm install, poetry lock, go mod tidy, etc.) based on the detected manifest.
  • CI config missing: this one needs a decision (which CI provider), ask or infer from context (a .gitlab-ci.yml already existing suggests GitLab, a GitHub remote suggests Actions). Offer a minimal starter workflow (lint + test + build) rather than a large one, it's easier to extend a small working pipeline than to trim a large broken one.

Step 3: fix the content-dependent gaps with a draft, not a guess

These need real project context, don't fabricate detail you don't have:

  • README missing or a stub: read whatever you can about the project (manifest name/description fields, existing source layout, package.json scripts) and draft a real README: what it is, how to run it locally, how to test it. Show the draft before writing it if the project already has some README content you'd be replacing, write directly only into a genuinely empty or near-empty file.
  • .env.example missing: scan the codebase for environment variable reads (process.env.X, os.environ["X"], os.getenv("X"), similar patterns per language) and list the ones you find, with placeholder values and a short comment on what each is for. If you can't find any real usage, say so rather than inventing plausible-looking variables.

Step 4: report back

Summarize what you found, what you created automatically, and what still needs a human decision (CI provider choice, whether to overwrite an existing README, running the lockfile command). Point to BASELINE_CHECKLIST.md as the ongoing record, this skill gets a project to a reasonable starting line; the checklist is what keeps it honest as the project grows. For the fuller set of rules behind each checklist item, see the security-baseline skill.

Ground rules

  • Never overwrite a file that already has real content in it. Append, create alongside, or ask, don't clobber.
  • Never invent a decision that has real consequences (which CI provider, what the project is actually for) when you can ask or infer it instead.
  • Re-running this skill on a project it's already touched should be a no-op apart from picking up genuinely new gaps, that's the whole point of scanning first.

Source: SKILL.md on GitHub

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No alerts2mo3 checks · Risk SAFE
  • Gen Agent Trust Hub2mo

    This skill is safe. It provides tools for project scaffolding and auditing engineering hygiene, such as ensuring secret files are excluded from version control and providing a security checklist. The bundled Python scanning script is local, uses only standard libraries, and performs read-only analysis of the project structure.

  • Socket2mo

    No alerts

  • Snyk2mo

    Risk: LOW · No issues

Signed by skilld at 4a1a53e. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 2 months ago.

Steadyupdated 2 months ago

README badge

README badge for saadaan-hassan/baseline-skills/project-baseline-setup