[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M78ACH8THEGEARANQ53ERYK9":3,"skill-same:01M78ACH8THEGEARANQ53ERYK9":71},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":25,"commitSha":26,"skillDirectory":27,"forksCount":14,"repositoryHtmlUrl":28,"repositoryHomepageUrl":6,"ownerHtmlUrl":29,"ownerBlogUrl":30,"ownerDescription":31,"updatedAt":32,"install":33,"resources":46},"01M78ACH8THEGEARANQ53ERYK9","nemo-mbridge-perf-sequence-packing",null,"Validate and use packed sequences and long-context training in Megatron-Bridge, distinguishing offline packed SFT for LLMs from in-batch packing for VLMs, and applying the right CP constraints.","Solizardking\u002Ftrain2earn","Solizardking","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F108096810?v=4","01M786KDB10AYV042N0F9BD5B5","Clawd","01M786KDC5C3NPE4W44C5641EZ",0,"Apache-2.0","https:\u002F\u002Fgithub.com\u002FSolizardking\u002Ftrain2earn\u002Fblob\u002Fmain\u002Fskillhub\u002Fskills\u002Fnvidia\u002Fnemo-mbridge-perf-sequence-packing\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: nemo-mbridge-perf-sequence-packing\ndescription: Validate and use packed sequences and long-context training in Megatron-Bridge, distinguishing offline packed SFT for LLMs from in-batch packing for VLMs, and applying the right CP constraints.\nlicense: Apache-2.0\nwhen_to_use: Enabling sequence packing or long-context SFT, or investigating a commit that broke sequence packing or changed packing behavior; 'packed sequences', 'sequence packing', 'PackedSequenceSpecs', 'enable_in_batch_packing', 'CP with packing'.\n---\n\n# Sequence Packing Skill\n\nFor stable background and recommendation level, see:\n\n- @docs\u002Ftraining\u002Fpacked-sequences.md\n- @skills\u002Fnemo-mbridge-perf-sequence-packing\u002Fcard.yaml\n\n## Enablement\n\nOffline packed SFT for LLM finetuning:\n\n```python\nfrom megatron.bridge.data.datasets.packed_sequence import PackedSequenceSpecs\n\ncfg.train.micro_batch_size = 1\ncfg.dataset.seq_length = 4096\ncfg.model.seq_length = 4096\ncfg.dataset.dataset_kwargs = {\"pad_to_max_length\": True}\ncfg.dataset.enable_offline_packing = True\ncfg.dataset.offline_packing_specs = PackedSequenceSpecs(\n    packed_sequence_size=4096,\n    pad_seq_to_mult=1,\n)\n```\n\nIf CP is enabled:\n\n```python\ncfg.model.context_parallel_size = 2\ncfg.model.calculate_per_token_loss = True\ncfg.ddp.average_in_collective = False\ncfg.dataset.offline_packing_specs.pad_seq_to_mult = cfg.model.context_parallel_size * 2\n\n# Offline packing is not finalized by ConfigContainer. If sequence_parallel is\n# also enabled, align offline samples to both constraints explicitly:\n# import math\n# cfg.dataset.offline_packing_specs.pad_seq_to_mult = math.lcm(2 * CP, CP * TP)\n# ConfigContainer computes this CP\u002FSP LCM automatically for in-batch packing only.\n```\n\nIf CUDA graphs are enabled for this packed path:\n\n```python\ncfg.dataset.offline_packing_specs.pad_cu_seqlens = True\ncfg.dataset.dataset_kwargs[\"pad_to_max_length\"] = True\n```\n\n**Note:** `pad_cu_seqlens = True` also requires a metadata JSON file alongside\nthe packed dataset (asserted in `src\u002Fmegatron\u002Fbridge\u002Fdata\u002Fdatasets\u002Fsft.py`).\nCustom packed datasets that omit the metadata file will hit an assertion at\ndataset initialization.\n\nIn-batch packing for VLM finetuning:\n\n```python\ncfg.dataset.enable_in_batch_packing = True\ncfg.train.micro_batch_size = 2\n```\n\nLong-context baseline:\n\n```python\ncfg.model.seq_length = 16384\ncfg.dataset.seq_length = 16384\ncfg.model.context_parallel_size = 2\n```\n\n## Code Anchors\n\nLLM packed SFT config surface:\n\n```110:125:src\u002Fmegatron\u002Fbridge\u002Frecipes\u002Futils\u002Ffinetune_utils.py\ndataset_kwargs = {\"chat\": True, \"use_hf_tokenizer_chat_template\": True}\noffline_packing_specs = None\nif packed_sequence:\n    dataset_kwargs[\"pad_to_max_length\"] = True\n    offline_packing_specs = PackedSequenceSpecs(packed_sequence_size=seq_length, pad_seq_to_mult=pad_seq_to_mult)\n\nreturn _text_hf_dataset_provider(\n    ...\n    enable_offline_packing=packed_sequence,\n    offline_packing_specs=offline_packing_specs,\n    dataset_kwargs=dataset_kwargs,\n    ...\n)\n```\n\nBridge validation:\n\n```1220:1248:src\u002Fmegatron\u002Fbridge\u002Ftraining\u002Fconfig.py\nenable_in_batch_packing = getattr(self.dataset, \"enable_in_batch_packing\", False)\nenable_offline_packing = getattr(self.dataset, \"enable_offline_packing\", False)\noffline_packing_specs = getattr(self.dataset, \"offline_packing_specs\", None)\n\nif enable_offline_packing and enable_in_batch_packing:\n    raise ValueError(\"enable_offline_packing and enable_in_batch_packing are mutually exclusive.\")\nif enable_offline_packing and offline_packing_specs is None:\n    raise ValueError(\"offline_packing_specs must be set when enable_offline_packing=True.\")\n...\nif enable_in_batch_packing:\n    ...\n    cp_multiple = 2 * cp_size if cp_size > 1 else 1\n    sp_multiple = cp_size * tp_size if has_sp and tp_size > 1 else 1\n    self.dataset.in_batch_packing_pad_to_multiple_of = math.lcm(cp_multiple, sp_multiple)\n```\n\n```1400:1442:src\u002Fmegatron\u002Fbridge\u002Ftraining\u002Fconfig.py\nif self.model.context_parallel_size > 1:\n    assert self.model.seq_length % (self.model.context_parallel_size * 2) == 0, ...\n    if isinstance(self.dataset, FinetuningDatasetConfig):\n        assert self.model.calculate_per_token_loss, ...\n        assert not self.ddp.average_in_collective, ...\n...\nif enable_offline_packing and self.train.micro_batch_size > 1:\n    raise ValueError(...)\n...\nif enable_in_batch_packing and self.train.micro_batch_size == 1:\n    raise ValueError(...)\n```\n\nCollate-time in-batch runtime used by VLM providers:\n\n```397:449:src\u002Fmegatron\u002Fbridge\u002Fdata\u002Fsequence_batching.py\ndef prepare_padded_or_packed_sequence_batch(\n    batch,\n    *,\n    sequence_length,\n    ...\n    enable_in_batch_packing=False,\n    in_batch_packing_pad_to_multiple_of=1,\n    ...\n):\n    ...\n    if enable_in_batch_packing:\n        pack_right_padded_sequence_batch_to_mcore_thd(\n            batch,\n            sequence_length=sequence_length,\n            pad_to_multiple_of=in_batch_packing_pad_to_multiple_of,\n            ...\n        )\n        return\n```\n\nPacked THD runtime constraint:\n\n```94:108:src\u002Fmegatron\u002Fbridge\u002Ftraining\u002Fgpt_step.py\nif batch.get(\"cu_seqlens_q\") is not None:\n    cu_seqlens = batch.get(\"cu_seqlens_q_padded\")\n    if cu_seqlens is None:\n        cu_seqlens = batch[\"cu_seqlens_q\"]\n    if cu_seqlens.dim() > 1 and cu_seqlens.size(0) != 1:\n        raise ValueError(\"Packed THD batches expect micro-batch size 1 for context-parallel slicing (THD layout)\")\n    return cu_seqlens.squeeze()\n\ncu_seqlens = batch[\"cu_seqlens\"]\nif cu_seqlens.dim() > 1 and cu_seqlens.size(0) != 1:\n    raise ValueError(\"Packed THD batches expect micro-batch size 1 for context-parallel slicing (THD layout)\")\n```\n\n## Pitfalls\n\n1. Offline packed SFT and VLM in-batch packing are different features with opposite micro-batch rules.\n2. When CP is enabled, packed sequence lengths must respect `2 * context_parallel_size` divisibility.\n3. For finetuning with CP, `calculate_per_token_loss=True` and `ddp.average_in_collective=False` are required.\n4. `pad_cu_seqlens=True` also requires `pad_to_max_length=True`.\n5. Packing support is model-family-specific. `Qwen3-Next`, `GLM-4.5`, and `Qwen3.5-VL` contain explicit opt-outs in different paths.\n6. MTP finetuning is documented as incompatible with packed sequences.\n7. Synthetic padding rows, including negative indices remapped through `samples_mapping`, must retain an all-zero loss mask.\n\n## Verification\n\nUse the checked-in unit coverage:\n\n```bash\nuv run python -m pytest tests\u002Funit_tests\u002Ftraining\u002Futils\u002Ftest_packed_seq_utils.py -v && \\\nuv run python -m pytest tests\u002Funit_tests\u002Ftraining\u002Ftest_config.py -k \"packed_sequence or enable_in_batch_packing or offline_and_in_batch_packing_are_mutually_exclusive or context_parallel_seq_length_divisibility or context_parallel_finetuning_validations\" -v && \\\nuv run python -m pytest tests\u002Funit_tests\u002Fdata\u002Fvlm_datasets\u002Ftest_batching.py -v && \\\nuv run python -m pytest tests\u002Funit_tests\u002Ftraining\u002Ftest_vlm_step.py -k \"deferred_in_batch_packing or packed_metadata\" -v && \\\nuv run python -m pytest tests\u002Funit_tests\u002Fdata\u002Fdatasets\u002Ftest_packed_parquet.py -k \"negative_index_zeroes_loss_mask\" -v && \\\nuv run python -m pytest tests\u002Funit_tests\u002Fdata\u002Fdatasets\u002Ftest_sft.py -k \"mapped_padding_rows_do_not_contribute_to_loss\" -v\n```\n\nSuccess criteria:\n\n- all selected tests pass\n- offline and in-batch configuration validation remains mutually exclusive\n- packed metadata reaches the training step in MCore THD form\n- mapped padding rows do not contribute to loss\n","# Sequence Packing Skill\n\nFor stable background and recommendation level, see:\n\n- @docs\u002Ftraining\u002Fpacked-sequences.md\n- @skills\u002Fnemo-mbridge-perf-sequence-packing\u002Fcard.yaml\n\n## Enablement\n\nOffline packed SFT for LLM finetuning:\n\n```python\nfrom megatron.bridge.data.datasets.packed_sequence import PackedSequenceSpecs\n\ncfg.train.micro_batch_size = 1\ncfg.dataset.seq_length = 4096\ncfg.model.seq_length = 4096\ncfg.dataset.dataset_kwargs = {\"pad_to_max_length\": True}\ncfg.dataset.enable_offline_packing = True\ncfg.dataset.offline_packing_specs = PackedSequenceSpecs(\n    packed_sequence_size=4096,\n    pad_seq_to_mult=1,\n)\n```\n\nIf CP is enabled:\n\n```python\ncfg.model.context_parallel_size = 2\ncfg.model.calculate_per_token_loss = True\ncfg.ddp.average_in_collective = False\ncfg.dataset.offline_packing_specs.pad_seq_to_mult = cfg.model.context_parallel_size * 2\n\n# Offline packing is not finalized by ConfigContainer. If sequence_parallel is\n# also enabled, align offline samples to both constraints explicitly:\n# import math\n# cfg.dataset.offline_packing_specs.pad_seq_to_mult = math.lcm(2 * CP, CP * TP)\n# ConfigContainer computes this CP\u002FSP LCM automatically for in-batch packing only.\n```\n\nIf CUDA graphs are enabled for this packed path:\n\n```python\ncfg.dataset.offline_packing_specs.pad_cu_seqlens = True\ncfg.dataset.dataset_kwargs[\"pad_to_max_length\"] = True\n```\n\n**Note:** `pad_cu_seqlens = True` also requires a metadata JSON file alongside\nthe packed dataset (asserted in `src\u002Fmegatron\u002Fbridge\u002Fdata\u002Fdatasets\u002Fsft.py`).\nCustom packed datasets that omit the metadata file will hit an assertion at\ndataset initialization.\n\nIn-batch packing for VLM finetuning:\n\n```python\ncfg.dataset.enable_in_batch_packing = True\ncfg.train.micro_batch_size = 2\n```\n\nLong-context baseline:\n\n```python\ncfg.model.seq_length = 16384\ncfg.dataset.seq_length = 16384\ncfg.model.context_parallel_size = 2\n```\n\n## Code Anchors\n\nLLM packed SFT config surface:\n\n```110:125:src\u002Fmegatron\u002Fbridge\u002Frecipes\u002Futils\u002Ffinetune_utils.py\ndataset_kwargs = {\"chat\": True, \"use_hf_tokenizer_chat_template\": True}\noffline_packing_specs = None\nif packed_sequence:\n    dataset_kwargs[\"pad_to_max_length\"] = True\n    offline_packing_specs = PackedSequenceSpecs(packed_sequence_size=seq_length, pad_seq_to_mult=pad_seq_to_mult)\n\nreturn _text_hf_dataset_provider(\n    ...\n    enable_offline_packing=packed_sequence,\n    offline_packing_specs=offline_packing_specs,\n    dataset_kwargs=dataset_kwargs,\n    ...\n)\n```\n\nBridge validation:\n\n```1220:1248:src\u002Fmegatron\u002Fbridge\u002Ftraining\u002Fconfig.py\nenable_in_batch_packing = getattr(self.dataset, \"enable_in_batch_packing\", False)\nenable_offline_packing = getattr(self.dataset, \"enable_offline_packing\", False)\noffline_packing_specs = getattr(self.dataset, \"offline_packing_specs\", None)\n\nif enable_offline_packing and enable_in_batch_packing:\n    raise ValueError(\"enable_offline_packing and enable_in_batch_packing are mutually exclusive.\")\nif enable_offline_packing and offline_packing_specs is None:\n    raise ValueError(\"offline_packing_specs must be set when enable_offline_packing=True.\")\n...\nif enable_in_batch_packing:\n    ...\n    cp_multiple = 2 * cp_size if cp_size > 1 else 1\n    sp_multiple = cp_size * tp_size if has_sp and tp_size > 1 else 1\n    self.dataset.in_batch_packing_pad_to_multiple_of = math.lcm(cp_multiple, sp_multiple)\n```\n\n```1400:1442:src\u002Fmegatron\u002Fbridge\u002Ftraining\u002Fconfig.py\nif self.model.context_parallel_size > 1:\n    assert self.model.seq_length % (self.model.context_parallel_size * 2) == 0, ...\n    if isinstance(self.dataset, FinetuningDatasetConfig):\n        assert self.model.calculate_per_token_loss, ...\n        assert not self.ddp.average_in_collective, ...\n...\nif enable_offline_packing and self.train.micro_batch_size > 1:\n    raise ValueError(...)\n...\nif enable_in_batch_packing and self.train.micro_batch_size == 1:\n    raise ValueError(...)\n```\n\nCollate-time in-batch runtime used by VLM providers:\n\n```397:449:src\u002Fmegatron\u002Fbridge\u002Fdata\u002Fsequence_batching.py\ndef prepare_padded_or_packed_sequence_batch(\n    batch,\n    *,\n    sequence_length,\n    ...\n    enable_in_batch_packing=False,\n    in_batch_packing_pad_to_multiple_of=1,\n    ...\n):\n    ...\n    if enable_in_batch_packing:\n        pack_right_padded_sequence_batch_to_mcore_thd(\n            batch,\n            sequence_length=sequence_length,\n            pad_to_multiple_of=in_batch_packing_pad_to_multiple_of,\n            ...\n        )\n        return\n```\n\nPacked THD runtime constraint:\n\n```94:108:src\u002Fmegatron\u002Fbridge\u002Ftraining\u002Fgpt_step.py\nif batch.get(\"cu_seqlens_q\") is not None:\n    cu_seqlens = batch.get(\"cu_seqlens_q_padded\")\n    if cu_seqlens is None:\n        cu_seqlens = batch[\"cu_seqlens_q\"]\n    if cu_seqlens.dim() > 1 and cu_seqlens.size(0) != 1:\n        raise ValueError(\"Packed THD batches expect micro-batch size 1 for context-parallel slicing (THD layout)\")\n    return cu_seqlens.squeeze()\n\ncu_seqlens = batch[\"cu_seqlens\"]\nif cu_seqlens.dim() > 1 and cu_seqlens.size(0) != 1:\n    raise ValueError(\"Packed THD batches expect micro-batch size 1 for context-parallel slicing (THD layout)\")\n```\n\n## Pitfalls\n\n1. Offline packed SFT and VLM in-batch packing are different features with opposite micro-batch rules.\n2. When CP is enabled, packed sequence lengths must respect `2 * context_parallel_size` divisibility.\n3. For finetuning with CP, `calculate_per_token_loss=True` and `ddp.average_in_collective=False` are required.\n4. `pad_cu_seqlens=True` also requires `pad_to_max_length=True`.\n5. Packing support is model-family-specific. `Qwen3-Next`, `GLM-4.5`, and `Qwen3.5-VL` contain explicit opt-outs in different paths.\n6. MTP finetuning is documented as incompatible with packed sequences.\n7. Synthetic padding rows, including negative indices remapped through `samples_mapping`, must retain an all-zero loss mask.\n\n## Verification\n\nUse the checked-in unit coverage:\n\n```bash\nuv run python -m pytest tests\u002Funit_tests\u002Ftraining\u002Futils\u002Ftest_packed_seq_utils.py -v && \\\nuv run python -m pytest tests\u002Funit_tests\u002Ftraining\u002Ftest_config.py -k \"packed_sequence or enable_in_batch_packing or offline_and_in_batch_packing_are_mutually_exclusive or context_parallel_seq_length_divisibility or context_parallel_finetuning_validations\" -v && \\\nuv run python -m pytest tests\u002Funit_tests\u002Fdata\u002Fvlm_datasets\u002Ftest_batching.py -v && \\\nuv run python -m pytest tests\u002Funit_tests\u002Ftraining\u002Ftest_vlm_step.py -k \"deferred_in_batch_packing or packed_metadata\" -v && \\\nuv run python -m pytest tests\u002Funit_tests\u002Fdata\u002Fdatasets\u002Ftest_packed_parquet.py -k \"negative_index_zeroes_loss_mask\" -v && \\\nuv run python -m pytest tests\u002Funit_tests\u002Fdata\u002Fdatasets\u002Ftest_sft.py -k \"mapped_padding_rows_do_not_contribute_to_loss\" -v\n```\n\nSuccess criteria:\n\n- all selected tests pass\n- offline and in-batch configuration validation remains mutually exclusive\n- packed metadata reaches the training step in MCore THD form\n- mapped padding rows do not contribute to loss\n",{"name":5,"license":15,"description":7,"when_to_use":24},"Enabling sequence packing or long-context SFT, or investigating a commit that broke sequence packing or changed packing behavior; 'packed sequences', 'sequence packing', 'PackedSequenceSpecs', 'enable_in_batch_packing', 'CP with packing'.","main","86cc27ffd16af6cb85948f1155578e6f3f61cc4c","skillhub\u002Fskills\u002Fnvidia\u002Fnemo-mbridge-perf-sequence-packing","https:\u002F\u002Fgithub.com\u002FSolizardking\u002Ftrain2earn","https:\u002F\u002Fgithub.com\u002FSolizardking","https:\u002F\u002Fmusebook.trade","Got a mile high and never came down","2026-10-08 11:52:53",{"source":8,"skillName":5,"commands":34,"prompt":44,"zipAvailable":45},[35,38,41],{"tool":36,"command":37},"npx","npx skills add Solizardking\u002Ftrain2earn --skill nemo-mbridge-perf-sequence-packing",{"tool":39,"command":40},"bunx","bunx skills add Solizardking\u002Ftrain2earn --skill nemo-mbridge-perf-sequence-packing",{"tool":42,"command":43},"pnpm","pnpm dlx skills add Solizardking\u002Ftrain2earn --skill nemo-mbridge-perf-sequence-packing","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FSolizardking\u002Ftrain2earn\u002Fblob\u002Fmain\u002Fskillhub\u002Fskills\u002Fnvidia\u002Fnemo-mbridge-perf-sequence-packing\u002FSKILL.md",true,[47,53,57,61,65],{"path":48,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":51,"sourceHtmlUrl":52},"BENCHMARK.md","REFERENCE","参考文档",4013,"https:\u002F\u002Fgithub.com\u002FSolizardking\u002Ftrain2earn\u002Fblob\u002Fmain\u002Fskillhub\u002Fskills\u002Fnvidia\u002Fnemo-mbridge-perf-sequence-packing\u002FBENCHMARK.md",{"path":54,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":55,"sourceHtmlUrl":56},"card.yaml",4729,"https:\u002F\u002Fgithub.com\u002FSolizardking\u002Ftrain2earn\u002Fblob\u002Fmain\u002Fskillhub\u002Fskills\u002Fnvidia\u002Fnemo-mbridge-perf-sequence-packing\u002Fcard.yaml",{"path":58,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":59,"sourceHtmlUrl":60},"evals\u002Fevals.json",1956,"https:\u002F\u002Fgithub.com\u002FSolizardking\u002Ftrain2earn\u002Fblob\u002Fmain\u002Fskillhub\u002Fskills\u002Fnvidia\u002Fnemo-mbridge-perf-sequence-packing\u002Fevals\u002Fevals.json",{"path":62,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":63,"sourceHtmlUrl":64},"skill-card.md",4227,"https:\u002F\u002Fgithub.com\u002FSolizardking\u002Ftrain2earn\u002Fblob\u002Fmain\u002Fskillhub\u002Fskills\u002Fnvidia\u002Fnemo-mbridge-perf-sequence-packing\u002Fskill-card.md",{"path":66,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":69,"sourceHtmlUrl":70},"skill.oms.sig","OTHER","其他",4829,"https:\u002F\u002Fgithub.com\u002FSolizardking\u002Ftrain2earn\u002Fblob\u002Fmain\u002Fskillhub\u002Fskills\u002Fnvidia\u002Fnemo-mbridge-perf-sequence-packing\u002Fskill.oms.sig",[72,80,88,96,103,111],{"skillNo":73,"name":74,"nameZh":6,"description":75,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":76,"licenseFileUrl":6,"sourceHtmlUrl":77,"categories":78,"keywords":79,"publishedAt":19},"01M78B94RSCAKMH1QS79VE6DG9","testing","For testing with Light Protocol programs and clients on localnet, devnet, and mainnet validation.","MIT","https:\u002F\u002Fgithub.com\u002FSolizardking\u002Ftrain2earn\u002Fblob\u002Fmain\u002Fskillhub\u002Fskills\u002Ftesting\u002FSKILL.md",[],[],{"skillNo":81,"name":82,"nameZh":6,"description":83,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":76,"licenseFileUrl":84,"sourceHtmlUrl":85,"categories":86,"keywords":87,"publishedAt":19},"01M78B81BKY8RX12HETPG8YKWK","qedgen","Formally verify programs by writing Lean 4 proofs. Trigger this skill whenever the user wants to formally verify code, generate Lean 4 proofs, prove properties about algorithms or smart contracts, verify invariants, convert program logic into formal specifications, or anything involving Lean 4 and formal verification. Also trigger when the user mentions \"qedgen\", \"lean proof\", \"formal proof\", \"verify my code\", \"prove correctness\", \"formal verification\", or wants mathematical guarantees about their implementation.","https:\u002F\u002Fgithub.com\u002FSolizardking\u002Ftrain2earn\u002Fblob\u002Fmain\u002Fskillhub\u002Fskills\u002Fsolana-formal-verification\u002FLICENSE","https:\u002F\u002Fgithub.com\u002FSolizardking\u002Ftrain2earn\u002Fblob\u002Fmain\u002Fskillhub\u002Fskills\u002Fsolana-formal-verification\u002FSKILL.md",[],[],{"skillNo":89,"name":90,"nameZh":6,"description":91,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":76,"licenseFileUrl":92,"sourceHtmlUrl":93,"categories":94,"keywords":95,"publishedAt":19},"01M78B7Q7C5K54E01DN83A60KG","solana-dev","Use when user asks to \"build a Solana dapp\", \"write an Anchor program\", \"create a token\", \"debug Solana errors\", \"set up wallet connection\", \"test my Solana program\", \"deploy to devnet\", or \"explain Solana concepts\" (rent, accounts, PDAs, CPIs, etc.). Also use for quick on-chain lookups via public RPC + curl — \"what's the balance of \u003Cwallet>\", \"look up transaction \u003Csig>\", \"token balance for \u003Caccount>\", \"check this address on mainnet\u002Fdevnet\". End-to-end Solana development playbook covering wallet connection, Anchor\u002FPinocchio programs, Codama client generation, LiteSVM\u002FMollusk\u002FSurfpool testing, security checklists, and JSON-RPC curl lookups against public clusters. Integrates with the Solana MCP server for live documentation search. Prefers framework-kit (@solana\u002Fclient + @solana\u002Freact-hooks) for UI, wallet-standard-first connection (incl. ConnectorKit), @solana\u002Fkit for client\u002FRPC code, and @solana\u002Fweb3-compat for legacy boundaries.","https:\u002F\u002Fgithub.com\u002FSolizardking\u002Ftrain2earn\u002Fblob\u002Fmain\u002Fskillhub\u002Fskills\u002Fsolana-dev\u002FLICENSE","https:\u002F\u002Fgithub.com\u002FSolizardking\u002Ftrain2earn\u002Fblob\u002Fmain\u002Fskillhub\u002Fskills\u002Fsolana-dev\u002FSKILL.md",[],[],{"skillNo":97,"name":98,"nameZh":6,"description":99,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":76,"licenseFileUrl":6,"sourceHtmlUrl":100,"categories":101,"keywords":102,"publishedAt":19},"01M78B7HXD6N6GWKSVRQ8F6Q31","solana-common-errors","Diagnose and fix common Solana development errors — GLIBC mismatches, Anchor version conflicts, cargo build-sbf \u002F platform-tools failures, LiteSVM issues, edition2024 crate pins, RPC airdrops, and Anchor 0.29→0.32 migrations. Use when builds fail, Anchor CLI won't install, or CI breaks on Debian\u002FUbuntu.","https:\u002F\u002Fgithub.com\u002FSolizardking\u002Ftrain2earn\u002Fblob\u002Fmain\u002Fskillhub\u002Fskills\u002Fsolana-common-errors\u002FSKILL.md",[],[],{"skillNo":104,"name":105,"nameZh":6,"description":106,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":107,"sourceHtmlUrl":108,"categories":109,"keywords":110,"publishedAt":19},"01M78B6T7YSYWQ0N4DP40QDXEZ","skill-creator","Create or update AgentSkills. Use when designing, structuring, or packaging skills with scripts, references, and assets.","https:\u002F\u002Fgithub.com\u002FSolizardking\u002Ftrain2earn\u002Fblob\u002Fmain\u002Fskillhub\u002Fskills\u002Fskill-creator\u002Flicense.txt","https:\u002F\u002Fgithub.com\u002FSolizardking\u002Ftrain2earn\u002Fblob\u002Fmain\u002Fskillhub\u002Fskills\u002Fskill-creator\u002FSKILL.md",[],[],{"skillNo":112,"name":113,"nameZh":6,"description":114,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":76,"licenseFileUrl":6,"sourceHtmlUrl":115,"categories":116,"keywords":117,"publishedAt":19},"01M78B1VFT9X5AND7AE1HZPZGF","phantom-wallet-mcp","Execute wallet operations through the Phantom MCP server. Use when the user wants to interact with their Phantom wallet directly — get addresses, transfer SOL or SPL tokens, buy\u002Fswap tokens, sign transactions, and sign messages across Solana, Ethereum, Bitcoin, and Sui. Requires the @phantom\u002Fmcp-server to be configured as an MCP server.","https:\u002F\u002Fgithub.com\u002FSolizardking\u002Ftrain2earn\u002Fblob\u002Fmain\u002Fskillhub\u002Fskills\u002Fphantom-wallet-mcp\u002FSKILL.md",[],[]]