grok-projects-workspace
Use for grok-projects-workspace, projects scope, clone workspace repo, sync worktree with main repo, commit and push changes. Activate when user mentions grok-projects-workspace or wants consistent workspace across chats.
- License 许可
- MIT
- 最近更新
- 2026-09-01
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- grok-projects-workspace
- description
- Use for grok-projects-workspace, projects scope, clone workspace repo, sync worktree with main repo, commit and push changes. Activate when user mentions grok-projects-workspace or wants consistent workspace across chats.
02 资源文件 1
- 参考文档index.json668 B
03 SKILL.md 正文
Projects Scope Skill
Purpose
This skill guarantees that every chat using it maintains a consistent, synchronized workspace at /home/workdir/GrokProjects and stays fully aligned with the remote repository at all times.
Instructions
Core Workflow – Execute these steps in order every time this skill is active:
Visual cue — folder icon (its explicit intention):
This assets/folder-icon.png reference exists for one precise reason: to embed a visual reminder that tells the user (and every future agent) to click the folder icon in the Grok chat UI. Doing so instantly opens the file tree directly to the synchronized workspace at /home/workdir/GrokProjects.
![]()
-
Initialize / Sync Workspace at
/home/workdir/GrokProjectsand guide the user to click the folder icon:mkdir -p /home/workdir/GrokProjects if [ ! -d "/home/workdir/GrokProjects/.git" ]; then if ! git clone https://github.com/DCx7C5/grok-projects-workspace.git /home/workdir/GrokProjects 2>/dev/null; then echo "⚠️ Remote unavailable. Creating local workspace..." cd /home/workdir/GrokProjects git init mkdir -p pipelines templates repos docs echo '# Grok Projects Workspace (Local Fallback)' > README.md echo 'Initialized locally — remote clone failed.' >> README.md git add . git commit -m "chore: initial local workspace setup" fi else cd /home/workdir/GrokProjects && git pull --rebase fi cd /home/workdir/GrokProjects -
Explicit File Path Validation (run this immediately after every Initialize/Sync):
WORKSPACE="/home/workdir/GrokProjects" if [ ! -d "$WORKSPACE" ]; then echo "❌ Workspace directory missing: $WORKSPACE" exit 1 fi cd "$WORKSPACE" || { echo "❌ Cannot enter workspace path"; exit 1; } RESOLVED_PATH="$(realpath "$WORKSPACE")" if [ "$RESOLVED_PATH" != "/home/workdir/GrokProjects" ]; then echo "❌ CRITICAL PATH VALIDATION FAILED" echo "Expected: /home/workdir/GrokProjects" echo "Resolved: $RESOLVED_PATH" echo "Current pwd: $(pwd)" exit 1 fi echo "✅ Explicit file path validation passed: $(pwd)" # Guarantee core structure exists mkdir -p pipelines templates repos docs -
Instruct the user to click the folder icon (see image above) to open the file tree and directly access
/home/workdir/GrokProjectsin the UI. -
Communicate the Sync Rule clearly:
- Every agent must keep all work fully synchronized with this repository.
- Every change (pipelines, templates, docs, scripts, etc.) must be committed and pushed immediately.
- This repository is the single source of truth — never work in isolation.
-
Enforce Clean Workflow:
- Always
git pull --rebasebefore starting new work. - After any meaningful change, commit with a clear message and push immediately.
- Use
git statusandgit diffbefore every commit to avoid losing work.
- Always
-
Directory & Project Management:
- Keep the workspace at
/home/workdir/GrokProjects - Place all DystopianOS repositories under
repos/ - Store shared pipelines and templates in
pipelines/andtemplates/
- Keep the workspace at
-
Handle Unnamed Projects:
- If a project folder in
GrokProjects(especially underrepos/) still has no clear name:- Ask the user for a proper project name
- Rename the folder accordingly
- Immediately commit the change with a descriptive message
- Push it to the remote repository without delay
- This keeps the shared workspace clean and well-organized.
- If a project folder in
-
Migrate Legacy .grok Folder (Robust Migration):
# Check if legacy .grok exists outside GrokProjects if [ -d "/home/workdir/.grok" ] && [ ! -d "/home/workdir/GrokProjects/.grok" ]; then echo "🔄 Migrating legacy .grok folder into GrokProjects..." # Create backup if target already has content if [ -d "/home/workdir/GrokProjects/.grok" ]; then mv /home/workdir/GrokProjects/.grok /home/workdir/GrokProjects/.grok.backup.$(date +%s) fi mv /home/workdir/.grok /home/workdir/GrokProjects/.grok cd /home/workdir/GrokProjects git add .grok git commit -m "chore: migrate legacy .grok folder into workspace" git push echo "✅ .grok folder successfully migrated and committed." fi- This safely moves the old
.grokfolder (skills, config) intoGrokProjects/.grok/ - Creates a timestamped backup if needed
- Automatically commits and pushes the migration
- Centralizes all Grok configuration inside the shared workspace.
- This safely moves the old
Activation Triggers:
- "projects scope"
- "grok-projects-workspace"
- "clone the workspace"
- "sync workspace"
- "commit and push"
This skill ensures consistent, reliable, and synchronized behavior across all chats working on the DystopianOS CI/CD infrastructure.
04 同仓库更多 Skills
devel-jb-algorithmic-art
- Embed algorithms inline in the HTML artifact (don't create separate .
services-wmi-persistence-detect
Detect WMI event subscription persistence by enumerating ActiveScriptEventConsumer, CommandLineEventConsumer, and permanent subscriptions in the WMI repository.
services-wmi-exec-exploit
Perform lateral movement across Windows networks using WMI-based remote execution techniques including Impacket wmiexec.py, CrackMapExec, and native WMI commands for stealthy post-exploitation during red team engagements.
registry-artifact-extract
Extract and analyze Windows Registry hives to uncover user activity, installed software, autostart entries, and evidence of system compromise.
processes-token-impersonate-detect
Detect Windows token impersonation and privilege abuse including SeImpersonatePrivilege exploitation via Potato attacks and token stealing techniques.
processes-thread-injection-detect
Detect Windows thread injection techniques including CreateRemoteThread, QueueUserAPC, NtCreateThreadEx, and thread hijacking via process memory analysis.