Use Yaak
mountain-loop/yaak
A skill your agent uses when the user mentions Yaak, a Yaak workspace, or the yaak command, or asks to call, hit, or smoke test HTTP/REST endpoints, save or organize API requests for reuse or manual…
Detect proto package changes (indexer-proto-ts-v2, abacus-proto-ts-v2, tc-abacus-proto-ts-v2, platform-services-proto-ts-v2), compare old vs new proto files, and implement new/modified gRPC services…
$ npx skills add InjectiveLabs/injective-ts --skill align-proto -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install InjectiveLabs/injective-ts align-proto --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/InjectiveLabs/injective-ts.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/align-proto .claude/skills/align-proto && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "align-proto" agent skill from https://github.com/InjectiveLabs/injective-ts/tree/master/.agents/skills/align-proto into .claude/skills/align-proto/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "align-proto", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/InjectiveLabs/injective-ts/tree/master/.agents/skills/align-protoType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add InjectiveLabs/injective-ts --skill align-proto -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install InjectiveLabs/injective-ts align-proto --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/InjectiveLabs/injective-ts.git skills-src && mkdir -p .agents/skills && cp -r skills-src/.agents/skills/align-proto .agents/skills/align-proto && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "align-proto" agent skill from https://github.com/InjectiveLabs/injective-ts/tree/master/.agents/skills/align-proto into .agents/skills/align-proto/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "align-proto", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add InjectiveLabs/injective-ts --skill align-proto -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install InjectiveLabs/injective-ts align-proto --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/InjectiveLabs/injective-ts.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/.agents/skills/align-proto .cursor/skills/align-proto && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "align-proto" agent skill from https://github.com/InjectiveLabs/injective-ts/tree/master/.agents/skills/align-proto into .cursor/skills/align-proto/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "align-proto", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/InjectiveLabs/injective-ts.git --path .agents/skills/align-proto--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add InjectiveLabs/injective-ts --skill align-proto -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install InjectiveLabs/injective-ts align-proto --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/InjectiveLabs/injective-ts.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/.agents/skills/align-proto .gemini/skills/align-proto && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "align-proto" agent skill from https://github.com/InjectiveLabs/injective-ts/tree/master/.agents/skills/align-proto into .gemini/skills/align-proto/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "align-proto", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install InjectiveLabs/injective-ts align-protoInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add InjectiveLabs/injective-ts --skill align-proto -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/InjectiveLabs/injective-ts.git skills-src && mkdir -p .github/skills && cp -r skills-src/.agents/skills/align-proto .github/skills/align-proto && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "align-proto" agent skill from https://github.com/InjectiveLabs/injective-ts/tree/master/.agents/skills/align-proto into .github/skills/align-proto/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "align-proto", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add InjectiveLabs/injective-ts --skill align-proto -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install InjectiveLabs/injective-ts align-proto --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/InjectiveLabs/injective-ts.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/.agents/skills/align-proto .opencode/skills/align-proto && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "align-proto" agent skill from https://github.com/InjectiveLabs/injective-ts/tree/master/.agents/skills/align-proto into .opencode/skills/align-proto/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "align-proto", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
align-protoDetect proto package changes (indexer-proto-ts-v2, abacus-proto-ts-v2, tc-abacus-proto-ts-v2, platform-services-proto-ts-v2), compare old vs new proto files, and implement new/modified gRPC services…
Align Proto is an agent skill from InjectiveLabs/injective-ts. Detect proto package changes (indexer-proto-ts-v2, abacus-proto-ts-v2, tc-abacus-proto-ts-v2, platform-services-proto-ts-v2), compare old vs new proto files, and implement new/modified gRPC services in sdk-ts following established patterns.
Its SKILL.md is about 6.4k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.
It sits in Backend & APIs, covering gRPC and Protobuf. It works with gRPC. The repository describes itself as: Collection of TypeScript packages that consume and interact with the Injective Chain. The licence is Apache-2.0.
12 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit f837375. It shows what the files ask for, not the result of running them.
Pre-approves these tools, so the agent can use them without asking each time:
BashReadWriteEditGlobGrepAgentTodoWriteAskUserQuestionFrom allowed-tools in the SKILL.md frontmatter.
Shell commands in SKILL.md call:
pnpmnpmFrom the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md. Its commands use pnpm and npm, which can reach the network depending on how they are called.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Align Proto loads about 6.4k tokens when it runs. Until then it costs about 63 tokens; SKILL.md has 1,996 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check noted patterns worth knowing about, such as sudo or a known installer.
allowed-tools: Bash, Read, Write, Edit, Glob, Grep, Agent, TodoWrite, AskUserQuestionAutomated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from InjectiveLabs/injective-ts at commit f837375, republished under its Apache-2.0 licence (© InjectiveLabs). 1,996 words, ~6,393 tokens.
.claude/skills/align-proto/SKILL.md (or your agent's skills folder).You are an AI that detects proto package changes and implements new gRPC services in the SDK. Follow this workflow exactly.
$ARGUMENTS may contain --check-only to run in read-only mode (detect and report only, no implementation).This skill is procedural and approval-gated. Do not collapse it into an end-to-end implementation sprint.
packages/sdk-ts/package.json, treat it as initial onboarding:none--check-only, never edit files; stop after the implementation status report.| Package | Import Prefix | Base Class | Module Enum Source |
|---|---|---|---|
@injectivelabs/indexer-proto-ts-v2 | indexer-proto-ts-v2 | BaseIndexerGrpcConsumer | IndexerModule from ../types/index.js |
@injectivelabs/abacus-proto-ts-v2 | abacus-proto-ts-v2 | BaseAbacusGrpcConsumer | AbacusModule from ../types/index.js |
@injectivelabs/tc-abacus-proto-ts-v2 | tc-abacus-proto-ts-v2 | BaseGrpcConsumer | IndexerErrorModule from @injectivelabs/exceptions |
@injectivelabs/platform-services-proto-ts-v2 | platform-services-proto-ts-v2 | BaseGrpcConsumer | IndexerErrorModule from @injectivelabs/exceptions unless a platform module exists |
protoV2/indexer/gen.sh, source repo path injective-indexer/api/gen/grpc/**/*.protoprotoV2/abacus/gen.sh, source repo path injective-abacus/api/gen/grpc/points_svc/pb/**/*.protoprotoV2/tcAbacus/gen.sh, source repo path injective-abacus/api/gen_tc/gen/grpc/injective_tc_abacus_rpc/pb/**/*.protoprotoV2/platform-services/gen.sh, source repo path platform-services/api/gen/grpc/**/*.protoAsk the user which proto package to sync:
indexer-proto-ts-v2 (Indexer gRPC services)abacus-proto-ts-v2 (Abacus gRPC services)tc-abacus-proto-ts-v2 (TC Abacus gRPC services)platform-services-proto-ts-v2 (Platform services gRPC APIs, including positions/social leaderboard services)packages/sdk-ts/package.json1.18.7) or says "latest"npm view @injectivelabs/{package-name} versionCreate a todo list to track progress:
Update each item as it completes.
Create backup directory: scripts/.align-proto-backup/{package-name}/{current-version}/
Copy all proto files from the package's node_modules generated directory:
node_modules/.pnpm/@injectivelabs+indexer-proto-ts-v2@{version}/node_modules/@injectivelabs/indexer-proto-ts-v2/generated/node_modules/.pnpm/@injectivelabs+abacus-proto-ts-v2@{version}/node_modules/@injectivelabs/abacus-proto-ts-v2/generated/node_modules/.pnpm/@injectivelabs+tc-abacus-proto-ts-v2@{version}/node_modules/@injectivelabs/tc-abacus-proto-ts-v2/generated/node_modules/.pnpm/@injectivelabs+platform-services-proto-ts-v2@{version}/node_modules/@injectivelabs/platform-services-proto-ts-v2/generated/Approval gate: show the exact dependency change and install command, then wait for explicit approval before editing packages/sdk-ts/package.json or running install.
Update packages/sdk-ts/package.json with the new version. This change is permanent.
Run pnpm install --force in project root. The --force flag ensures all packages are properly re-linked from the pnpm store, preventing empty package directories from stale/corrupted installs. If install fails, show error and exit.
Compare backup vs new proto files. Detect:
*_rpc_pb.d.ts files; platform-services may use Goa names like goagen_api_*_pb.d.ts)Use diff -rq for a file-level summary, then diff individual files for details. For modified services, use awk '/^export interface MessageName/,/^}/' on both versions to isolate and compare individual message definitions cleanly (raw .d.ts diffs are hard to read because messages are reordered between generator runs).
When an existing *_rpc_pb.d.ts or platform-services goagen_api_*_pb.d.ts file is modified, do NOT assume the changes are purely additive. Check for each of these change types:
protobuf rpc: entries in the matching *.client.d.tsexport interface declarationsmessageType string fields — check doc comments like Type: 'a', 'b', 'c' on bidirectional/WS stream wrapper responses (e.g. TakerStreamResponse.messageType). Added values require new case arms in the corresponding WS stream handler, even when no new gRPC method was added.conditionalOrder?: ... sibling to existing quote?, requestAck?. These deliver payload for the new messageType value above.For each detected change, map it to SDK-side updates:
fetch* / stream* method; wire onto the request builderfetch* / stream* method, transformer method, type interface(s), and spec testsmessageType value → add case arm in WS stream handler + new event key in the *StreamEvents interfacePresent detected changes. Ask which services to implement. Skip old missing services.
If --check-only: Stop here. Show implementation status report and exit.
For each selected service:
Parse the proto *_rpc_pb.d.ts file (or platform-services goagen_api_*_pb.d.ts) to extract:
ServiceType definitionserverStreaming: true)Categorize methods:
fetch* methodstream* methodTakerStream, MakerStream) → extend existing IndexerWs*Stream.ts handlers; do NOT generate a new *StreamV2.ts classFind the most similar existing implementation as reference:
IndexerGrpcMetaApiIndexerGrpcRfqApiIndexerGrpcSpotStreamV2IndexerGrpcDerivativesApiIndexerWsTakerStream / IndexerWsMakerStreampackages/sdk-ts/src/client/platformServices if present; otherwise mirror the closest unary gRPC consumer pattern and keep names platform-scoped (for example PlatformServicesGrpcPositionsApi)For modified services, the proposal is a surgical edit list — NOT a file-creation list. Enumerate each existing file that needs editing with the specific add/remove/rename per field. Call out breaking removals explicitly (they affect downstream consumers).
Show file list (or edit list), method breakdown, line estimates. Ask for approval.
Approval gate: do not create or edit SDK implementation files until the user explicitly approves the Step 9 proposal.
Create files in dependency order:
1. types/*.ts (no dependencies)
2. transformers/*Transformer.ts (depends on types)
3. transformers/*StreamTransformer.ts (depends on main transformer)
4. grpc/*Api.ts (depends on types + transformers)
5. grpc/*Api.spec.ts (depends on API class + transformers)
6. grpc_stream/streamV2/*StreamV2.ts (depends on stream transformer)
7. grpc_stream/streamV2/*StreamV2.spec.ts (depends on stream class)
8. Update all index.ts exports (depends on all above)types/*.ts - TypeScript interfacestransformers/IndexerGrpc*Transformer.ts (or AbacusGrpc* / TcAbacusGrpc*) - Data transformationgrpc/IndexerGrpc*Api.ts (or AbacusGrpc* / TcAbacusGrpc*) - Main API classgrpc/IndexerGrpc*Api.spec.ts (or AbacusGrpc* / TcAbacusGrpc*) - Test file for the API classplatformServices, PlatformServicesGrpc*Api) instead of indexer names.transformers/Indexer*StreamTransformer.ts - Stream transformationgrpc_stream/streamV2/IndexerGrpc*StreamV2.ts - Stream API classgrpc_stream/streamV2/IndexerGrpc*StreamV2.spec.ts - Stream test filegrpc/index.tstransformers/index.tstypes/index.tsgrpc_stream/index.ts (if streaming)All exports must be in strict alphabetical order.
@injectivelabs/exceptions was modified (new module added), build it first:cd packages/exceptions && pnpm buildprotoV2/platform-services/gen.sh before SDK validation.pnpm type-check in packages/sdk-tspnpm build in packages/sdk-ts (or pnpm tsdown if type-check has pre-existing errors)After validation completes with no new errors in touched files, show an implementation summary and ask whether everything is as expected before deleting backups. If the user requests more changes, continue editing and re-validating, then show an updated implementation summary. Once the user confirms the result is set, delete scripts/.align-proto-backup/{package-name}/{version}/ and give a separate cleanup/final summary. If validation failed with new errors in touched files, keep the backup and report what must be fixed.
When debugging broken EIP712 generation for a Msg* abstraction:
*.spec.ts by changing the test message params and prepareEip712 args to match the client payload exactly: account number, chain ID, fee, gas, memo, sequence, timeout height, signer addresses, and every message field. Preserve omitted optional fields as omitted in the SDK params if the client omitted them.const txResponse = await new IndexerGrpcWeb3GwApi(
endpoints.indexer,
).prepareEip712Request({txResponse. For EIP712 v2, parse message.context and message.msgs before diffing when useful because they are stringified JSON."0" or decimal strings. The SDK must sign the normalized value if Web3Gw includes it.Msg* abstraction so toEip712V2()/toWeb3Gw() matches the chain/Web3Gw output. Keep the regression test parameters aligned with the broken client payload and add a focused assertion for any optional-field defaulting behavior.// For Indexer:
import type * as ProtoPackagePb from '@injectivelabs/indexer-proto-ts-v2/generated/[proto_file]_pb'
// For Abacus:
import type * as ProtoPackagePb from '@injectivelabs/abacus-proto-ts-v2/generated/[proto_file]_pb'
// For TC Abacus:
import type * as TcAbacusPb from '@injectivelabs/tc-abacus-proto-ts-v2/generated/[proto_file]_pb'
// For Platform Services:
import type * as PlatformServicesPb from '@injectivelabs/platform-services-proto-ts-v2/generated/[proto_file]_pb'
export interface DataType {
field1: string
field2: number // Convert bigint to number for timestamps
}
export interface ListResponse {
items: DataType[]
next: string[] // Pagination tokens (indexer only)
}
export type GrpcDataType = ProtoPackagePb.DataTypeType naming conflicts: If the service introduces types that conflict with existing ones (e.g., PositionDelta already in derivatives), use a service-specific prefix (e.g., TCPositionDelta). Always check for conflicts before implementing.
import type * as ProtoPackagePb from '@injectivelabs/indexer-proto-ts-v2/generated/[proto_file]_pb'
import type { DataType, GrpcDataType, ListResponse } from '../types'
/**
* @category Indexer Grpc Transformer
*/
export class IndexerGrpc[Service]Transformer {
static grpcDataTypeToDataType(grpcData: GrpcDataType): DataType {
return {
field1: grpcData.field1,
field2: Number(grpcData.field2), // Convert bigint
}
}
static listResponseToItems(response: ProtoPackagePb.ListResponse): ListResponse {
return {
items: response.items.map(IndexerGrpc[Service]Transformer.grpcDataTypeToDataType),
next: response.next,
}
}
}import * as ProtoPackagePb from '@injectivelabs/indexer-proto-ts-v2/generated/[proto_file]_pb'
import { [ServiceClient] } from '@injectivelabs/indexer-proto-ts-v2/generated/[proto_file]_pb.client'
import { IndexerModule } from '../types/index.js'
import { IndexerGrpc[Service]Transformer } from '../transformers/index.js'
import BaseIndexerGrpcConsumer from '../../base/BaseIndexerGrpcConsumer.js'
/**
* @category Indexer Grpc API
*/
export class IndexerGrpc[Service]Api extends BaseIndexerGrpcConsumer {
protected module: string = IndexerModule.[ServiceName]
private get client() {
return this.initClient([ServiceClient])
}
async fetchItems(params?: {
marketIds?: string[]
perPage?: number
token?: string
}) {
const { marketIds, perPage, token } = params || {}
const request = ProtoPackagePb.ItemsRequest.create()
if (marketIds && marketIds.length > 0) {
request.marketIds = marketIds
}
if (token) {
request.token = token
}
if (perPage) {
request.perPage = perPage
}
const response = await this.executeGrpcCall<
ProtoPackagePb.ItemsRequest,
ProtoPackagePb.ItemsResponse
>(request, this.client.items.bind(this.client))
return IndexerGrpc[Service]Transformer.listResponseToItems(response)
}
}import { IndexerGrpc[Service]Transformer } from './IndexerGrpc[Service]Transformer.js'
import type * as ProtoPackagePb from '@injectivelabs/indexer-proto-ts-v2/generated/[proto_file]_pb'
/**
* @category Indexer Stream Transformer
*/
export class Indexer[Service]StreamTransformer {
static itemStreamCallback = (response: ProtoPackagePb.StreamItemResponse) => {
const item = response.item
return {
item: item ? IndexerGrpc[Service]Transformer.grpcItemToItem(item) : undefined,
operationType: response.operationType,
timestamp: Number(response.timestamp),
}
}
}import * as ProtoPackagePb from '@injectivelabs/indexer-proto-ts-v2/generated/[proto_file]_pb'
import { [ServiceClient] } from '@injectivelabs/indexer-proto-ts-v2/generated/[proto_file]_pb.client'
import { createStreamSubscriptionV2 } from './streamHelpersV2.js'
import { Indexer[Service]StreamTransformer } from '../../transformers/index.js'
import { GrpcWebRpcTransport } from '../../../base/GrpcWebRpcTransport.js'
import type { StreamSubscription } from '../../../../types/index.js'
export type ItemStreamCallbackV2 = (
response: ReturnType<typeof Indexer[Service]StreamTransformer.itemStreamCallback>,
) => void
export class IndexerGrpc[Service]StreamV2 {
private client: [ServiceClient]
private transport: GrpcWebRpcTransport
constructor(endpoint: string, metadata?: Record<string, string>) {
this.transport = new GrpcWebRpcTransport(endpoint, metadata)
this.client = new [ServiceClient](this.transport)
}
streamItems({
marketIds,
callback,
}: {
marketIds?: string[]
callback: ItemStreamCallbackV2
}): StreamSubscription {
if (typeof callback !== 'function') {
throw new Error('callback must be a function')
}
const request = ProtoPackagePb.StreamItemRequest.create()
if (marketIds && marketIds.length > 0) {
request.marketIds = marketIds
}
const stream = this.client.streamItem(request)
return createStreamSubscriptionV2(stream, (response) => {
const transformed = Indexer[Service]StreamTransformer.itemStreamCallback(response)
callback(transformed)
})
}
}import { Network, getNetworkEndpoints } from '@injectivelabs/networks'
import { IndexerGrpc[Service]Api } from './IndexerGrpc[Service]Api.js'
import type { IndexerGrpc[Service]Transformer } from '../transformers/index.js'
const endpoints = getNetworkEndpoints(Network.Mainnet)
const indexerGrpc[service]Api = new IndexerGrpc[Service]Api(endpoints.indexer)
describe('IndexerGrpc[Service]Api', () => {
test('fetchItems', async () => {
try {
const response = await indexerGrpc[service]Api.fetchItems({
// provide realistic test parameters
})
expect(response).toBeDefined()
expect(response).toEqual(
expect.objectContaining<
ReturnType<
typeof IndexerGrpc[Service]Transformer.listResponseToItems
>
>(response),
)
} catch (e) {
console.error(
'IndexerGrpc[Service]Api.fetchItems => ' + (e as any).message,
)
}
})
})Test file conventions:
Network.Mainnet endpointsexpect.objectContaining with transformer return types for type validationtype only (used for type checking, not runtime)import { Network, getNetworkEndpoints } from '@injectivelabs/networks'
import { IndexerGrpc[Service]StreamV2 } from './IndexerGrpc[Service]StreamV2.js'
const endpoints = getNetworkEndpoints(Network.MainnetSentry)
describe('IndexerGrpc[Service]StreamV2', () => {
let stream: IndexerGrpc[Service]StreamV2
beforeEach(() => {
stream = new IndexerGrpc[Service]StreamV2(endpoints.indexer)
})
describe('constructor', () => {
it('should create instance with endpoint', () => {
expect(stream).toBeDefined()
expect(stream).toBeInstanceOf(IndexerGrpc[Service]StreamV2)
})
it('should create instance with endpoint and metadata', () => {
const metadata = { 'x-custom-header': 'test-value' }
const s = new IndexerGrpc[Service]StreamV2(endpoints.indexer, metadata)
expect(s).toBeDefined()
expect(s).toBeInstanceOf(IndexerGrpc[Service]StreamV2)
})
})
describe('streamItems', () => {
it('should create subscription with unsubscribe method', () => {
const subscription = stream.streamItems({
callback: () => {},
})
expect(subscription).toBeDefined()
expect(typeof subscription.unsubscribe).toBe('function')
subscription.unsubscribe()
})
it('should throw error if callback is not a function', () => {
expect(() => {
stream.streamItems({
callback: null as any,
})
}).toThrow('callback must be a function')
})
})
})Stream test file conventions:
Network.MainnetSentry endpoints (not Network.Mainnet)subscription.unsubscribe() after creation testsThe module field references module enums from @injectivelabs/exceptions in packages/exceptions/src/exceptions/types/modules.ts:
IndexerModule.ServiceName → 'indexer-{service-name}'AbacusModule.ServiceName → 'abacus-{service-name}'IndexerErrorModule.Abacus → 'abacus'When implementing a new service, add the module to the exceptions package and build it before building sdk-ts.
.js extensionparams || {}length > 0 before assignmentthis.client.method.bind(this.client)typeof callback !== 'function'/** @category */The codebase may have pre-existing TypeScript errors. To verify your implementation:
pnpm tsdown directly if type-check shows many errors - the build may succeed.Cannot find module '@protobuf-ts/runtime-rpc'Property 'toBinary' does not exist on typeArgument of type 'unknown' is not assignable© InjectiveLabs, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in .agents/skills/align-proto of InjectiveLabs/injective-ts.
Open the folder on GitHubat commit f837375
Align Proto next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Align Proto this skillInjectiveLabs/injective-ts | 155 | — | ~6.4k | Automated safety check: Notes | Apache-2.0 | |
| Use Yaakmountain-loop/yaak | 19k | — | ~1.9k | Automated safety check: Pass | MIT | |
| Golang Proantoniopaya22/go-rest-template | 172 | 3 repos | ~1.2k | Automated safety check: Pass | MIT | |
| Debug Grpc ConnectionGetBindu/Bindu | 10k | — | ~1.2k | Automated safety check: Pass | Custom licence | |
| Aspnet Corefanslead/ReverseProxy.Store | 163 | 2 repos | ~1.4k | Automated safety check: Pass | Apache-2.0 | |
| Regenerate Grpc StubsGetBindu/Bindu | 10k | — | ~810 | Automated safety check: Pass | Custom licence |
mountain-loop/yaak
A skill your agent uses when the user mentions Yaak, a Yaak workspace, or the yaak command, or asks to call, hit, or smoke test HTTP/REST endpoints, save or organize API requests for reuse or manual…
antoniopaya22/go-rest-template
Implements concurrent Go patterns using goroutines and channels, designs and builds microservices with gRPC or REST, optimizes Go application performance with pprof, and enforces idiomatic Go with…
GetBindu/Bindu
Diagnose gRPC connection issues between the Bindu core and a language SDK.
fanslead/ReverseProxy.Store
Build, review, refactor, or architect ASP.NET Core web applications using current official guidance for .NET web development.
GetBindu/Bindu
Regenerate Python + TypeScript gRPC stubs after editing proto files.
aoyunyang/spider-king-skill
Pure-web protocol reverse skill: turn hostile browser clients into browser-free Python collectors.
Works with
Categories
Detect proto package changes (indexer-proto-ts-v2, abacus-proto-ts-v2, tc-abacus-proto-ts-v2, platform-services-proto-ts-v2), compare old vs new proto files, and implement new/modified gRPC services…. Align Proto is an agent skill from InjectiveLabs/injective-ts. Detect proto package changes (indexer-proto-ts-v2, abacus-proto-ts-v2, tc-abacus-proto-ts-v2, platform-services-proto-ts-v2), compare old vs new proto files, and implement new/modified gRPC services in sdk-ts following established patterns.
Align Proto fits situations like: tasks that involve gRPC and Protobuf.
Run `npx skills add InjectiveLabs/injective-ts --skill align-proto -a claude-code`. Or copy the skill folder (.agents/skills/align-proto in InjectiveLabs/injective-ts) into .claude/skills/align-proto in your project. Claude Code loads it when a task matches its description.
Run `npx skills add InjectiveLabs/injective-ts --skill align-proto -a codex`. Or copy the skill folder (.agents/skills/align-proto in InjectiveLabs/injective-ts) into .agents/skills/align-proto in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add InjectiveLabs/injective-ts --skill align-proto -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/align-proto, .gemini/skills/align-proto, .github/skills/align-proto and .opencode/skills/align-proto in your project.
Going by SKILL.md and its folder, Align Proto needs the command-line tools its instructions call (pnpm and npm). Its frontmatter pre-approves these tools: Bash, Read, Write, Edit, Glob, Grep, Agent, TodoWrite, AskUserQuestion.
SKILL.md contains no URLs. Its commands use npm, which can reach the network depending on how they are called. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found notes only (pre-approves every shell command (allowed-tools: bash)), nothing it rates as a warning. It is not a guarantee. Review the folder before installing.
Align Proto is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 6.4k tokens (SKILL.md is roughly 26k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Align Proto: Use Yaak (mountain-loop/yaak, 19k stars), Golang Pro (antoniopaya22/go-rest-template, 172 stars), Debug Grpc Connection (GetBindu/Bindu, 10k stars) and Aspnet Core (fanslead/ReverseProxy.Store, 163 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
InjectiveLabs (a GitHub organization) maintains it in InjectiveLabs/injective-ts, which has 155 GitHub stars. The repository was last updated on October 6, 2026.
Source: InjectiveLabs/injective-ts on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.