| name | description |
|---|---|
validate-workspace |
Use this skill when a workspace is created or opened to ensure that specific files, directories, and configurations exist within a workspace. |
This skill allows the agent to verify that the workspace adheres to specific structural requirements. This is useful for maintaining consistency across projects, ensuring documentation is present, or verifying that a build environment is correctly set up.
The skill provides a script check_workspace.py that takes a JSON manifest as input. This script takes manifest.json as an argument, which defines the required files, directories, and configurations that must be present in the workspace.
manifest.json is located in this skiill's resource directory.
When feeback is recieved from the check_workspace.py script, the agent can use this information to prompt the user to add missing items or to automatically create them if possible.
The manifest is a JSON object with a requirements key, which is a list of requirement objects.
{
"requirements": [
{
"path": "README.md",
"type": "file",
"message": "Project must have a README.md"
},
{
"path": "src",
"type": "directory",
"message": "Project must have a src directory"
},
{
"path": ".env.example",
"type": "file"
}
]
}The scripd does not require the creation of a manifest file within the workspace to be run and should use the manifest.json provided in the skill's resource directory. The script will check for the presence of the specified files and directories in the current workspace.
Execute the script from the root of the workspace:
python3 /Users/dalestirling/.gemini/antigravity/skills/workspace-guard/scripts/check_workspace.py /Users/dalestirling/.gemini/antigravity/skills/resources/manifest.jsonThe script will exit with code 0 if all requirements are met, and code 1 otherwise, listing the missing items.