codemercl

New Hook — Development skill for Claude Code

Development community

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

Terminal
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

  1. 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 Repository