Skip to content

cuberhaus/cuberhaus-workspace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cuberhaus-workspace

Source of truth for agent-customization files that live at the workspace root of ~/cuberhaus.

~/cuberhaus is a plain folder collecting ~50 sibling git repos for the VS Code multi-root workspace — it is not itself a git repo. This repo holds the files that should appear at that workspace root: AGENTS.md, repos.json, .github/skills/, .github/hooks/, and the VS Code user prompts under prompts/.

What lives here

Path Deployed to Purpose
AGENTS.md $WORKSPACE/AGENTS.md (with GENERATED header) Workspace-wide agent guidance
repos.json $WORKSPACE/repos.json Catalog of all sibling repos + state
.github/skills/** $WORKSPACE/.github/skills/** Workspace-scope agent skills (/init-repo, /bulk-sweep)
.github/hooks/** $WORKSPACE/.github/hooks/** VS Code Copilot hooks (block-generated-edits, inject-repos-state, uncommitted-summary)
prompts/*.prompt.md VS Code user prompts dir Slash commands (/skills-install)
prompts/*.agent.md VS Code user prompts dir Custom agent modes (Caveman Mode, Debug Mode Instructions, GitHub Actions Expert)
assets/pre-commit, assets/pre-push (consumed by other repos) Canonical lefthook scripts
policies.json (read by audit-policies.py) Cross-repo policy spec
scripts/build-repos.py (regenerates repos.json) Workspace catalog generator
scripts/audit-policies.py (compares against policies.json) Repo-settings audit

Sync

# Windows
.\sync.ps1
.\sync.ps1 -DryRun
.\sync.ps1 -WorkspaceRoot 'D:\code\cuberhaus'
# Linux / macOS
./sync.sh
./sync.sh -n              # dry run
./sync.sh -w /opt/cuberhaus

Both scripts copy this folder's contents into $WORKSPACE (default ~/cuberhaus) and the prompts/agent modes into the platform-specific VS Code user prompts dir (%APPDATA%\Code\User\prompts\ on Windows, ~/.config/Code/User/prompts/ on Linux). The agent-mode files (*.agent.md) appear in the VS Code chat mode dropdown user-wide, available in every workspace. Idempotent — only writes when SHA256 differs.

For convenience, the WinDotfiles and dotfiles repos each expose make sync-workspace that delegates to the sibling cuberhaus-workspace/ clone.

Editing

This is the single source of truth. There are no peer copies to keep byte-identical — edit here, then run ./sync.ps1 / ./sync.sh (or make sync-workspace from the dotfiles repos) to deploy.

The deployed files at ~/cuberhaus/ carry a GENERATED FILE header and should not be edited directly. The block-generated-edits hook denies attempts to edit them.

History

Extracted from WinDotfiles/cuberhaus-workspace/ and dotfiles/cuberhaus-workspace/ (which were byte-identical mirrors) to remove the duplication and the parity-check overhead. Originally a sibling folder inside each dotfiles repo; now an independent repo cloned alongside the others under ~/cuberhaus/.

About

Source of truth for the ~/cuberhaus multi-root VS Code workspace (AGENTS.md, repos.json, .github/hooks, .github/skills, sync scripts)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

  •  

Packages

 
 
 

Contributors