New Hook — Development skill for Claude Code
Scaffold a new GraphQL hook (useQuery or useMutation) with gql/ directory, following project conventions.
How to install New Hook
Installs to ~/.claude/commands/codemercl-claude-framework-new-hook.md
mkdir -p ~/.claude/commands && curl -fsSL https://raw.githubusercontent.com/codemercl/claude-framework/HEAD/.claude/commands/new-hook.md -o ~/.claude/commands/codemercl-claude-framework-new-hook.md Restart Claude Code, or start a new session, for it to be picked up.
What New Hook does
name: new-hook description: Scaffold a new GraphQL hook (useQuery or useMutation) with gql/ directory, following project conventions. Usage: /new-hook (e.g. /new-hook profile useQueryProfileSearch)
Create a new GraphQL hook in `front/src/bus/$ARGUMENTS`.
Parse arguments: first arg is domain (e.g. `profile`), second is hookName (e.g. `useQueryProfileSearch` or `useMutationAddFavorite`).
Steps
- Determine hook type from name prefix:
useQuery→ query, `useMutat
Alternatives in Development
- Theme Color Conventions — Extensions in this repo use a consistent color language mapped to Pi's theme tokens 526 ★
- Medusa Agent Skills — Agent skills and commands for Medusa best practices and conventions 211 ★
- Conventions — codeck skill authoring conventions 204 ★
Full documentation available on GitHub
View Source RepositoryRelated Skills
New Bus Component
Scaffold a new bus/ component with styles, following project conventions. Usage: /new-bus-component --element
API Endpoint
Scaffold a complete new API endpoint for the WealthWise API following all project conventions.
New Page
Scaffold a complete new dashboard page for the WealthWise web app following all project conventions.
Gql Performance Benchmark
Run GraphQL performance benchmarks against the Alkemio API and compare against a stored baseline
Fec Scaffold
Create a standard directory structure and template files for pages, features, or components according to proje
Forge GraphQL Skill
Scaffold a complete Claude Code skill (commands + types + client) from a GraphQL endpoint or local schema file
Related Agents
Plugin Scaffold
Scaffold a new vlist feature with all required files following project conventions. Use when creating a new fe
Gql Runner
GQL validation runner. Runs all GraphQL queries from the web client and test suites against the dev API and lo
Scaffold Inspect
Sets up inspect-ai evaluation configurations for all runs in a designed experiment. Reads experiment_summary.y