Install
$ agentstack add skill-ashermahonin-agentic-skills-project-structure-governance ✓ scanned · ✓ verified — works with Claude Code, Cursor, and more.
Security review
✓ PassedNo issues found. Passed automated security review. · v0.1.0 How review works →
- ✓ Prompt-injection patterns
- ✓ Secret / credential exfiltration
- ✓ Dangerous shell & filesystem operations
- ✓ Untrusted network calls
- ✓ Known-malicious package signatures
What it can access
- ✓ Network access No
- ✓ Filesystem access No
- ✓ Shell / process execution No
- ✓ Environment & secrets No
- ✓ Dynamic code execution No
From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.
About
Project Structure Governance
Role
Keep the repository understandable after the agent leaves. Treat structure, temporary artifacts, test scripts, and documentation entrypoints as part of the deliverable, not as cleanup someone else will do later.
Start By
- Read
references/project-activity-contract.md. - Identify the project type, existing conventions, and current documentation entrypoint (
README.md,docs/README.md,RUNBOOK.md,AGENTS.md,CLAUDE.md, or equivalent). - Inspect the repo root and common scratch locations for clutter: one-off scripts, generated outputs, screenshots, temp logs, duplicate instructions, abandoned migration helpers, and stale test harnesses.
- Confirm where temporary/test artifacts should live for this repo. Prefer an existing convention; otherwise use a dedicated ignored workspace such as
.agent-work/,.tmp/agent/, ortools/agent/depending on project norms. - Record any required cleanup, consolidation, or documentation-entrypoint work before implementation expands the file surface.
Procedure
- Structure contract. Define or verify the top-level repo map: source, tests, tools, docs, scripts, infra, assets, fixtures, generated artifacts, and agent-only workspace.
- Artifact routing. Route every new file before creating it: production source, test fixture, reusable tool, temporary experiment, generated output, documentation, or project memory.
- Temporary isolation. Put throwaway scripts, debug probes, generated logs, screenshots, benchmark scratch, and exploratory outputs in the dedicated agent/test workspace. Do not place them in repo root.
- Reusable promotion. Promote a temporary script only if it has a stable name, documented purpose, safe flags, validation command, owner, and a permanent home such as
tools/,scripts/,tests/fixtures/, ordocs/examples/. - Documentation entrypoint. Maintain one canonical entrypoint that links outward: README for project overview,
docs/README.mdfor deep docs when needed, and one runbook/index for operation. Avoid multiple competing “STARTHERE”, “HOWTO”, “FINAL”, “NEW_README”, or duplicate setup files. - Runbook hygiene. If operational commands, install steps, local dev setup, release, rollback, or incident response changed, update the canonical runbook/index instead of adding a standalone note.
- Root cleanliness check. Before handoff, verify the repo root contains only intentional files. Move, delete, or document anything temporary according to the contract.
- Graph update. Hand documentation changes to
documentation-graph-curatorso Obsidian memory points to the canonical entrypoint and does not preserve obsolete instructions as current truth.
Principal-Level Defaults
- Follow
../../routing/principal-operating-model.md. - Preserve existing repository conventions unless they are unclear, contradictory, or already causing clutter.
- Prefer moving temporary artifacts into an ignored workspace over deleting them while a task is still active.
- Do not silently delete user-created files. If ownership is unclear, list them as cleanup candidates with evidence.
- Treat duplicate documentation as a correctness risk because agents will follow the wrong file under context pressure.
Output Artifacts
- Project structure contract or updated repo map
- Agent/test artifact workspace decision
- Documentation/runbook entrypoint decision
- Cleanup candidates and resolved clutter list
- Handoff note naming remaining temporary artifacts, if any
Quality Bar
- No one-off scripts, scratch outputs, generated logs, screenshots, or temp files in repo root.
- No new permanent script without stable purpose, safe defaults, and a validation command.
- No duplicate competing documentation entrypoints.
- No hidden setup or runbook change outside the canonical documentation path.
- No cleanup claim without checking root-level files and newly created artifacts.
- No Obsidian update that points future agents to stale setup or runbook instructions.
Handoff
Hand off the structure contract, moved/promoted artifacts, canonical documentation entrypoint, cleanup candidates, and validation commands to documentation-graph-curator, qa-eval, or pr-review as appropriate.
References
references/project-activity-contract.md: contract for repo structure, temporary artifacts, reusable scripts, docs entrypoints, and cleanup gates.
Source & license
This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.
- Author: ashermahonin
- Source: ashermahonin/agentic-skills
- License: MIT
Install and usage instructions live in the source repository linked above.
Reviews
No reviews yet — be the first.
Write a review
Versions
- v0.1.0 Imported from the upstream source.