Profile

From baekenough/oh-my-customcode · View interactive version

Profile is an AI agent skill from the GitHub repository baekenough/oh-my-customcode. Load a skill profile to switch the plugin set (web-app/data-eng/harness-dev/minimal). Use to focus a workflow and shrink the skill list (#1041).

How to use this skill

Skill file

Profile Loader

Switch the active plugin set to match a workflow profile, reducing per-spawn skill enumeration overhead (see #1041, #1080).

Usage

/profile list                   # Show all available profiles
/profile current                # Show currently active profile
/profile load <name>            # Activate a profile (requires session restart)
/profile reset                  # Remove active profile marker (restores full plugin set)

Implementation rules

.claude/ path handling (CC v2.1.121+)

Direct Write/Edit on .claude/profiles/.active and ~/.claude/settings.json is permitted under the bypassPermissions permission mode (CC v2.1.121+, #1101). The legacy /tmp/*.sh bypass is deprecated. For CC < v2.1.121, see git history for the legacy pattern.

Profiles directory

Profiles live in .claude/profiles/*.json. Active profile marker: .claude/profiles/.active (plain text, contains profile name).

Global plugin state is stored in ~/.claude/settings.json under enabledPlugins (object: plugin-key → boolean).

Workflow: `/profile list`

  1. Read .claude/profiles/ — glob *.json
  2. For each JSON file: read name and description fields
  3. Check .claude/profiles/.active for currently active profile
  4. Print table:
Available profiles:
  web-app      Web application development (frontend + auth + deploy)
  data-eng     Data engineering sessions (Airflow, Spark, Kafka, Snowflake, dbt)
  harness-dev  oh-my-customcode harness development (agent/skill/rule authoring)
  minimal      Minimal plugin set for low-overhead sessions (memory + core only)

Active: web-app  (restart required to apply plugin changes)

Workflow: `/profile current`

  1. Read .claude/profiles/.active
  2. If exists: print Active profile: <name>
  3. If missing: print No profile active (full plugin set in use)

Workflow: `/profile load <name>`

  1. Locate .claude/profiles/<name>.json
  2. Read profile JSON — extract plugins.enabled and plugins.disabled
  3. Read ~/.claude/settings.json — extract current enabledPlugins object
  4. Compute diff:
  1. Show diff to user:
Profile: web-app
  Enable:  context7, superpowers, vercel, ui-design, ...
  Disable: codex, ralph-wiggum, agent-sdk-dev, ...
  1. Apply changes via direct Edit on ~/.claude/settings.json (under bypassPermissions permission mode, CC v2.1.121+):
  1. Write active marker via direct Write on .claude/profiles/.active (under bypassPermissions permission mode):
  1. Confirm:
[Done] Profile 'web-app' applied to ~/.claude/settings.json
Active marker written to .claude/profiles/.active
IMPORTANT: Restart this Claude Code session for plugin changes to take effect.

Workflow: `/profile reset`

  1. Remove .claude/profiles/.active marker via direct Bash: [ -e .claude/profiles/.active ] && rm .claude/profiles/.active (no -f, no /bin/rm; an rm that resolves to a safety wrapper is used as is) (under bypassPermissions permission mode)
  2. Print: [Done] Profile marker removed. Full plugin set will be active after restart.
  3. Note: does NOT revert ~/.claude/settings.json — user should re-run /profile load <other> or manually restore

Notes

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.