refresh-tarkovdev-schema — community refresh-tarkovdev-schema, tarkov-build-optimiser, community, ide skills, Claude Code, Cursor, Windsurf

v1.0.0
GitHub

About this Skill

Perfect for Gaming Agents needing automated Escape from Tarkov weapon build optimization and GraphQL schema updates. A tool for calculating optimal weapon builds in Escape from Tarkov.

sjtw sjtw
[0]
[0]
Updated: 3/5/2026

Agent Capability Analysis

The refresh-tarkovdev-schema skill by sjtw is an open-source community AI agent skill for Claude Code and other IDE workflows, helping agents execute tasks with better context, repeatability, and domain-specific guidance.

Ideal Agent Persona

Perfect for Gaming Agents needing automated Escape from Tarkov weapon build optimization and GraphQL schema updates.

Core Value

Empowers agents to regenerate the Go client and update the tarkov.dev GraphQL schema, enabling access to new fields, types, and data through GraphQL queries and the tarkov.dev API.

Capabilities Granted for refresh-tarkovdev-schema

Updating schema after tarkov.dev API updates
Resolving 'unknown field' errors in GraphQL queries
Integrating new data from the tarkov.dev API into projects
Setting up projects with the latest schema for the first time

! Prerequisites & Limits

  • Requires access to the tarkov.dev API
  • Specific to Escape from Tarkov and its API
  • Needs task automation with 'task tark' command
Labs Demo

Browser Sandbox Environment

⚡️ Ready to unleash?

Experience this Agent in a zero-setup browser environment powered by WebContainers. No installation required.

Boot Container Sandbox

refresh-tarkovdev-schema

Install refresh-tarkovdev-schema, an AI agent skill for AI agent workflows and automation. Works with Claude Code, Cursor, and Windsurf with one-command...

SKILL.md
Readonly

Refresh Tarkov.dev Schema Skill

Use this skill when updating the tarkov.dev GraphQL schema or regenerating the Go client.


When to Use

  • Tarkov.dev API has added new fields or types you need
  • GraphQL queries are failing with "unknown field" errors
  • You want to use new data that's available in the API
  • After a major tarkov.dev API update
  • Setting up the project for the first time (if schema is missing)

Quick Update

bash
1# Fetch latest schema and regenerate client 2task tarkovdev

This runs two steps:

  1. tarkovdev:get-schema - Downloads the latest schema from tarkov.dev
  2. tarkovdev:regenerate - Regenerates Go code from your queries

Step-by-Step Process

Step 1: Fetch Latest Schema

bash
1task tarkovdev:get-schema

What it does:

  • Introspects the tarkov.dev GraphQL API at https://api.tarkov.dev/graphql
  • Writes the schema to internal/tarkovdev/schemas/schema.graphql

Requirements:

  • graphql-inspector CLI tool (installed via task deps:install:node)
  • Internet connection to reach api.tarkov.dev

Step 2: Update Your Queries (if needed)

If you want to use new fields, update your queries in:

internal/tarkovdev/schemas/queries.graphql

Example: Adding a new field to an existing query

graphql
1query GetWeapons { 2 items(type: weapon) { 3 id 4 name 5 # Add new fields here 6 weight 7 basePrice 8 } 9}

Step 3: Regenerate Go Client

bash
1task tarkovdev:regenerate

What it does:

  • Runs genqlient code generator
  • Reads genqlient.yaml configuration
  • Generates Go types and functions in internal/tarkovdev/generated-queries.go

Configuration file: genqlient.yaml

yaml
1schema: internal/tarkovdev/schemas/schema.graphql 2operations: 3 - internal/tarkovdev/schemas/queries.graphql 4generated: internal/tarkovdev/generated-queries.go

Step 4: Verify the Changes

bash
1# Check what changed 2git diff internal/tarkovdev/ 3 4# Ensure it compiles 5go build ./... 6 7# Run relevant tests 8go test ./internal/tarkovdev/... 9go test ./internal/importers/...

What Gets Generated

After regeneration, internal/tarkovdev/generated-queries.go contains:

  • Go structs for all GraphQL types used in your queries
  • Query functions like GetWeapons(ctx, client), GetMods(ctx, client), etc.
  • Response types with proper JSON unmarshaling

Example generated code:

go
1type GetWeaponsResponse struct { 2 Items []GetWeaponsItem `json:"items"` 3} 4 5type GetWeaponsItem struct { 6 Id string `json:"id"` 7 Name string `json:"name"` 8 // New fields appear here automatically 9} 10 11func GetWeapons(ctx context.Context, client graphql.Client) (*GetWeaponsResponse, error) { 12 // Generated query execution 13}

Making Query Changes

Add a New Query

  1. Open internal/tarkovdev/schemas/queries.graphql
  2. Add your query:
graphql
1query GetTraderOffers { 2 traders { 3 id 4 name 5 cashOffers { 6 item { 7 id 8 name 9 } 10 price 11 } 12 } 13}
  1. Regenerate:
bash
1task tarkovdev:regenerate
  1. Use the generated function:
go
1import "tarkov-build-optimiser/internal/tarkovdev" 2 3resp, err := tarkovdev.GetTraderOffers(ctx, graphqlClient)

Modify an Existing Query

  1. Edit the query in queries.graphql
  2. Regenerate: task tarkovdev:regenerate
  3. Update any code using the old structure (compiler will help find it)

Remove a Query

  1. Delete or comment out the query in queries.graphql
  2. Regenerate: task tarkovdev:regenerate
  3. Remove any code calling the deleted query function

Understanding the Schema

View the Schema

bash
1# Open in your editor 2code internal/tarkovdev/schemas/schema.graphql

The schema shows:

  • Available types (Item, Weapon, Mod, Trader, etc.)
  • Fields on each type
  • Query operations you can use
  • Enums and their values

Explore Available Fields

graphql
1# Look for the type you're interested in 2type Item { 3 id: ID! 4 name: String 5 weight: Float 6 types: [ItemType!]! 7 # ... many more fields 8}

Check Query Operations

graphql
1type Query { 2 items(type: ItemType): [Item] 3 item(id: ID!): Item 4 traders: [Trader] 5 # ... etc 6}

Troubleshooting

Schema fetch fails

Error: Can't connect to api.tarkov.dev

Solutions:

  • Check internet connection
  • Verify API is online: curl https://api.tarkov.dev/graphql
  • Check if API endpoint changed (update in Taskfile)
  • Try again later (API might be down)

Code generation fails

Error: genqlient errors during regeneration

Check:

  • Query syntax is valid GraphQL
  • Field names match the schema exactly (case-sensitive)
  • Types used in queries exist in the schema
  • Required fields are included in queries

Debug:

bash
1# Validate your queries manually 2cat internal/tarkovdev/schemas/queries.graphql 3 4# Check genqlient version 5go list -m github.com/Khan/genqlient

Generated code has compilation errors

After regeneration, Go build fails

Solutions:

  • Update code using the changed types
  • Check if field names or types changed in the API
  • Verify your queries match the new schema
  • Look for breaking changes in tarkov.dev API

New fields not appearing

You fetched the schema but new fields aren't available

Check:

  • Did you run task tarkovdev:get-schema?
  • Is the field added to your query in queries.graphql?
  • Did you run task tarkovdev:regenerate after updating queries?
  • Is the field actually in the schema? (Check schema.graphql)

Best Practices

When to Update

  • ✅ Before starting work that needs new API fields
  • ✅ When GraphQL errors mention unknown fields
  • ✅ Periodically to stay current with API changes
  • ❌ Not during active development unless needed
  • ❌ Not if your queries are working fine

After Updating

  1. Check the diff to understand what changed
  2. Update your queries if needed
  3. Rebuild and test
  4. Update importers if data structures changed
  5. Commit schema and generated code together

Query Design

  • Request only fields you actually use (performance)
  • Use fragments for reusable field sets
  • Keep queries focused and named clearly
  • Document complex queries with comments

Files Involved

  • Schema source: https://api.tarkov.dev/graphql
  • Schema file: internal/tarkovdev/schemas/schema.graphql
  • Your queries: internal/tarkovdev/schemas/queries.graphql
  • Generated code: internal/tarkovdev/generated-queries.go
  • Config: genqlient.yaml
  • Client wrapper: internal/tarkovdev/tarkov-dev.go

Dependencies

Installed via task deps:install:node:

  • graphql-inspector - For schema introspection

Installed via task deps:install:go:

  • github.com/Khan/genqlient - For code generation

FAQ & Installation Steps

These questions and steps mirror the structured data on this page for better search understanding.

? Frequently Asked Questions

What is refresh-tarkovdev-schema?

Perfect for Gaming Agents needing automated Escape from Tarkov weapon build optimization and GraphQL schema updates. A tool for calculating optimal weapon builds in Escape from Tarkov.

How do I install refresh-tarkovdev-schema?

Run the command: npx killer-skills add sjtw/tarkov-build-optimiser/refresh-tarkovdev-schema. It works with Cursor, Windsurf, VS Code, Claude Code, and 19+ other IDEs.

What are the use cases for refresh-tarkovdev-schema?

Key use cases include: Updating schema after tarkov.dev API updates, Resolving 'unknown field' errors in GraphQL queries, Integrating new data from the tarkov.dev API into projects, Setting up projects with the latest schema for the first time.

Which IDEs are compatible with refresh-tarkovdev-schema?

This skill is compatible with Cursor, Windsurf, VS Code, Trae, Claude Code, OpenClaw, Aider, Codex, OpenCode, Goose, Cline, Roo Code, Kiro, Augment Code, Continue, GitHub Copilot, Sourcegraph Cody, and Amazon Q Developer. Use the Killer-Skills CLI for universal one-command installation.

Are there any limitations for refresh-tarkovdev-schema?

Requires access to the tarkov.dev API. Specific to Escape from Tarkov and its API. Needs task automation with 'task tark' command.

How To Install

  1. 1. Open your terminal

    Open the terminal or command line in your project directory.

  2. 2. Run the install command

    Run: npx killer-skills add sjtw/tarkov-build-optimiser/refresh-tarkovdev-schema. The CLI will automatically detect your IDE or AI agent and configure the skill.

  3. 3. Start using the skill

    The skill is now active. Your AI agent can use refresh-tarkovdev-schema immediately in the current project.

Related Skills

Looking for an alternative to refresh-tarkovdev-schema or another community skill for your workflow? Explore these related open-source skills.

View All

widget-generator

Logo of f
f

f.k.a. Awesome ChatGPT Prompts. Share, discover, and collect prompts from the community. Free and open source — self-host for your organization with complete privacy.

149.6k
0
AI

flags

Logo of vercel
vercel

flags is a Next.js feature management skill that enables developers to efficiently add or modify framework feature flags, streamlining React application development.

138.4k
0
Browser

zustand

Logo of lobehub
lobehub

The ultimate space for work and life — to find, build, and collaborate with agent teammates that grow with you. We are taking agent harness to the next level — enabling multi-agent collaboration, effortless agent team design, and introducing agents as the unit of work interaction.

72.8k
0
AI

data-fetching

Logo of lobehub
lobehub

The ultimate space for work and life — to find, build, and collaborate with agent teammates that grow with you. We are taking agent harness to the next level — enabling multi-agent collaboration, effortless agent team design, and introducing agents as the unit of work interaction.

72.8k
0
AI