Read and manage daplug configuration from CLAUDE.md using <daplug_config> blocks, with legacy fallback and migration support.
Reads daplug configuration from `<daplug_config>` blocks in CLAUDE.md files, with legacy fallback and migration support. Used by other skills needing daplug settings or when users request config changes.
/plugin marketplace add cruzanstx/daplug/plugin install daplug@cruzanstxThis skill is limited to using the following tools:
scripts/config.pytests/test_config_reader.pyCentralized configuration reader/migrator for daplug settings stored in <daplug_config> blocks inside CLAUDE.md. Provides backwards compatibility with legacy plaintext settings and safe migrations.
<daplug_config>
preferred_agent: codex
worktree_dir: .worktrees/
llms_txt_dir: /storage/projects/docker/llms_txt
ai_usage_awareness: enabled
cli_logs_dir: ~/.claude/cli-logs/
</daplug_config>
PLUGIN_ROOT=$(jq -r '.plugins."daplug@cruzanstx"[0].installPath' ~/.claude/plugins/installed_plugins.json)
CONFIG_READER="$PLUGIN_ROOT/skills/config-reader/scripts/config.py"
python3 "$CONFIG_READER" get preferred_agent
python3 "$CONFIG_READER" dump --json
python3 "$CONFIG_READER" dump --env
python3 "$CONFIG_READER" status
python3 "$CONFIG_READER" status --json
python3 "$CONFIG_READER" check-legacy
# Project and user
python3 "$CONFIG_READER" migrate --all
# Project only
python3 "$CONFIG_READER" migrate --project
# User only
python3 "$CONFIG_READER" migrate --user
# Project scope
python3 "$CONFIG_READER" set worktree_dir ".worktrees/" --scope project
# User scope
python3 "$CONFIG_READER" set preferred_agent "codex" --scope user
This skill should be used when the user asks to "create a slash command", "add a command", "write a custom command", "define command arguments", "use command frontmatter", "organize commands", "create command with file references", "interactive command", "use AskUserQuestion in command", or needs guidance on slash command structure, YAML frontmatter fields, dynamic arguments, bash execution in commands, user interaction patterns, or command development best practices for Claude Code.
This skill should be used when the user asks to "create an agent", "add an agent", "write a subagent", "agent frontmatter", "when to use description", "agent examples", "agent tools", "agent colors", "autonomous agent", or needs guidance on agent structure, system prompts, triggering conditions, or agent development best practices for Claude Code plugins.
This skill should be used when the user asks to "create a hook", "add a PreToolUse/PostToolUse/Stop hook", "validate tool use", "implement prompt-based hooks", "use ${CLAUDE_PLUGIN_ROOT}", "set up event-driven automation", "block dangerous commands", or mentions hook events (PreToolUse, PostToolUse, Stop, SubagentStop, SessionStart, SessionEnd, UserPromptSubmit, PreCompact, Notification). Provides comprehensive guidance for creating and implementing Claude Code plugin hooks with focus on advanced prompt-based hooks API.