alessioscarfone/barespec/init-context
Claude Code and agent skill by alessioscarfone/barespec
- community
Checking that the SKILL.md file is still in the repository.
Create or update the project context document that captures product vision, architecture, and tech stack in a single file. Use when bootstrapping a new project with mini-SDD, onboarding AI agents to an existing codebase, or updating project context after completing a feature. Do not use for writing feature specs or implementing code.
Install
npx vskill@latest install alessioscarfone/barespec/init-contextSKILL.md
The same SKILL.md was published earlier as alessioscarfone/barespec/init-context.
Create or update the project context document at ./barespec/context.md.
This file is the single source of truth read by every other mini-SDD skill. It merges product vision, architecture overview, and tech stack into one concise document.
Hook execution
Check ./barespec/barespec.config.yml for hooks.context.pre and hooks.context.post entries. Run pre-hooks before the Entry point; run post-hooks after the full workflow completes. See references/hooks.md for the full execution rules.
Entry point
- Check whether
./barespec/context.mdalready exists.
- If it exists → read it, show a summary to the user, and ask:
> "The project context already exists. Do you want to update it or start fresh (overwrite)?"
- Update → proceed to Step 2 — Update flow
- Start fresh → proceed to Step 1 — Creation flow
- If it does not exist → proceed to Step 1 — Creation flow
Step 1 — Creation flow
1a. Codebase reconnaissance
Inspect the project to gather as much context as possible before asking questions.
Read and parse (skip missing files silently):
README.mdat project rootpackage.json/Cargo.toml/pyproject.toml/go.mod/ build manifestsAGENTS.md,CONTRIBUTING.md,docs/- CI/CD config (
.github/workflows/,Dockerfile,docker-compose.yml) - Source structure (
src/,app/,lib/,server/,api/)
Derive:
- Project type (web app, API, CLI, library, monorepo, etc.)
- Tech stack (languages, frameworks, databases, test runners, build tools)
- Entry points
- UI presence (yes/no, which framework)
- Test setup
Present a short summary:
Ask: _"Does this look correct? Anything to add or fix?"_
1b. Round-based interview
Interview the user in rounds until every gap left by the reconnaissance is closed, following references/interview.md.
Seed the first round with the topics the reconnaissance could not settle:
- What does this project do? — One or two sentences describing the product/tool and who it's for.
- Key features — The main capabilities or modules.
- Architecture style — Monolith, microservices, serverless, CLI, etc.
- Non-functional requirements — Performance targets, security constraints, compliance needs.
- Current status — What's already built vs. what's planned.
Drop any topic already answered by the reconnaissance, and let later rounds follow from what the answers open up.
Gate — do not write `context.md` while the frontier is non-empty. Close with a short decision summary and the user's confirmation.
1c. Generate context.md
Read the template from assets/context.template.md and fill it in using the gathered information.
- Write the file to
./barespec/context.md - Set
Last updatedto today's date (YYYY-MM-DD) - Confirm to the user:
> "✅ Created ./barespec/context.md. You can review and edit it manually anytime."
Step 2 — Update flow
Use this flow when the context file already exists and the user chose to update it.
- Read the current
./barespec/context.md. - Ask the user:
> "What changed? For example: new feature completed, tech stack change, architecture update, status change."
- Based on the answer, update only the relevant sections of
context.md. - Update the
Last updateddate to today (YYYY-MM-DD). - Show a diff summary of what changed.
- Confirm:
> "✅ Updated ./barespec/context.md."
Output rules
- Asset path resolution: Any
assets/,scripts/, orreferences/paths in this skill are relative to the directory where this SKILL.md is installed — not the user's workspace. Derive the full absolute path from the path where this skill was loaded from. - Keep the document concise — aim for a single page that an AI agent can quickly consume.
- Use the structure from the template; do not invent new sections.
- Write in plain English, no marketing language.
- Resolve every open point during the interview; the written file contains no unanswered questions.
Error handling
- File not writable / path missing: Create parent directories as needed before writing
context.md. - User provides no answers: Adopt your recommended answer for every remaining question, list the answers you adopted, and write a complete file. Do not leave
<!-- unknown -->markers behind. - Codebase reconnaissance finds nothing: Skip the summary step and start the interview at round 1.
- Conflicting information: Surface the conflict to the user and re-ask that single question before writing.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/init-context/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/alessioscarfone/barespec/init-context)