Clain classify
Tidy up workspace sprawl from AI-assisted coding — categorical classification + executable plans for dev workspaces piling up under Google Drive sync.
npx -y skills add drai-inn/clain --skill clain-classifyAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 1 stars1 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
What its author says it does
Copied from the file, not written here
Use when the developer wants a categorical inventory of one workspace or a tree of workspaces — e.g. "classify my dev directory", "what's regenerable in this project?", "what kinds of subtrees are in this workspace tree?", "run clain classify --here". Surfaces cache-managed / ephemeral / bytecode / workspace-source tags and reports which workspaces sit inside a synced (e.g. GDrive / OneDrive / Dropbox / iCloud Drive) tree.
SKILL.md
2.4 KB, as published. Nobody here has run it
Run the clain CLI to classify workspaces under a developer-supplied root and surface the result.
Steps
-
Pick the mode. If the developer is talking about one project they're in (the common case), use single-workspace mode by passing
--here. If they're talking about a tree of projects (e.g. their~/dev/directory), use the default tree mode. -
Single-workspace mode (recommended default for everyday use):
clain classify --here "$WORKSPACE_PATH" # or omit the path to use cwd
- Tree mode (for cleaning up many workspaces at once): confirm the root with the developer. If they did not specify a path, ask for one or check whether
CLAIN_DEV_ROOTis set in their environment. Do not invent a default —clainhas no baked-in default in tree mode and will error if neither a positional argument norCLAIN_DEV_ROOTis provided.
clain classify "$ROOT"
-
Machine-readable output (any mode): add
--jsonto either form for piping or further analysis. -
Drill into one workspace (tree mode only):
clain classify "$ROOT" --workspace "$WORKSPACE_NAME". (Not compatible with--here.) -
Report the output verbatim. In single-workspace mode highlight: the manifests detected, the cache-managed subtrees, and the suggested next command shown in the "Next:" footer. In tree mode highlight: the number of workspaces under the synced tree, the most common class observed, and any rows marked with errors.
Notes
- This command is strictly read-only against
$ROOT. It does not modify any file under the scanned tree. - The result is cached for 24 hours under
$XDG_STATE_HOME/clain/classify/<root-hash>.json. Pass--refreshto force a fresh scan. - If the command fails (
clain: command not found, root does not exist, etc.), report the failure verbatim. Do not attempt workarounds or guess a different command.