All authors
wenmin-wu avatar

Claude Skills by wenmin-wu

github.com/wenmin-wu
535 skillsA× 5350 installs254 views
Greedy Word Reinsert SearchA

Greedy local search that removes one element from a fixed position and re-inserts it at every possible index, keeping the best improvement per round

businesspython
0
61
Inverse Task Prompt TemplateA

Structured prompt template for recovering the instruction that transformed one text into another, with labeled original/rewritten fields and explicit task framing

developmentpythonaws
0
61
Iterative Candidate RerankingA

Narrows a large candidate pool through multiple LLM voting rounds, each presenting a sliding window of candidates plus the current best pick.

ai-agentspythongit
0
61
Iterative Pairwise Keyword ExtractionA

Iteratively prompts an LLM over document pairs to extract and deduplicate keywords, building a comprehensive term set from multiple perspectives.

ai-agentspythonaws
0
61
Kv Cache Prefix ScoringA

Shares KV cache from a common prefix (context+question) across multiple answer suffixes for efficient multi-choice scoring.

documentationpythongit
0
61
Last Token Logit Binary ScoringA

Score a binary classification prompt by reading the logits of the True/False (or Yes/No) token IDs at the final position and softmaxing only those two values, skipping generation entirely for a 10-50x speedup over decoding

developmentpythongit
0
61
Last Token Pooling EmbeddingA

Extracts dense sentence embeddings from decoder-only LLMs by pooling the last non-padding token's hidden state.

ai-agentspythongit
0
61
Lora Sequence ClassificationA

Load a pretrained LLM with LoRA adapter via PEFT for memory-efficient fine-tuned sequence classification

developmentpythongo
0
61
Low Meaning Input SubstitutionA

Replace the actual input text with a generic low-meaning passage to prevent the LLM from fixating on content specifics, forcing it to focus on stylistic and structural transformation cues

ai-agentspython
0
61
Multi Gpu Process Isolated VllmA

Run independent vLLM workers on each GPU by spawning one mp.Process per device and setting CUDA_VISIBLE_DEVICES inside the child before vLLM is imported, sidestepping vLLM's single-instance-per-process limitation

ai-agentspythongo
0
61
Multiple Choice Logits ProcessorA

Constrains LLM generation to a fixed set of valid choice tokens using a logits processor for structured single-token output.

ai-agentspythongit
0
61
Perplexity Prompt RankingA

Rank candidate prompts by computing LLM perplexity of the full conversation conditioned on each prompt, selecting the lowest-perplexity candidate as the best match

developmentpythongit
0
61
Prompt Variant EnsembleA

Generate multiple LLM responses using diverse system prompt variants to increase reasoning diversity for self-consistency voting

developmentpythongo
0
61
Pseudo Metadata Score InjectionA

Append fake metadata tags like [Score: 8.7] or [plagiarism_odds_pct: 95.2] to anchor an LLM judge's numeric output

ai-agentspythongit
0
61
Score Variance Baseline MixinA

Mix a small fraction of plain baseline responses into an adversarial submission to preserve cross-row score variance

businesspython
0
61
Self Consistency Majority VoteA

Aggregate multiple LLM reasoning attempts via majority voting with random jitter tiebreaking and validity filtering

ai-agentspythongo
0
61
Sentence Truncation FallbackA

Truncate LLM output to exactly N sentences and fall back to a known-good baseline string when output is empty or too short

businesspythongo
0
61
Sliding Window Permutation SearchA

Local search that slides a window of size p across a word sequence, brute-forcing all permutations within each window to minimize an objective like LLM perplexity

toolspython
0
61
Spiral Patrol ExplorationA

Agents patrol in expanding spiral patterns using rotating direction sequences with increasing radius for systematic grid exploration

ai-agentspythongo
0
61
Stopword Priority SortingA

Initialize text ordering by placing stopwords first then content words, producing low-perplexity starting points for combinatorial search over word permutations

toolspython
0
61
Structured Output SanitizationA

Parses LLM-generated markup (SVG, HTML, XML) with lxml, strips disallowed elements and attributes via an allowlist, and validates structural constraints like path data.

developmentpython
0
61
Svg Constrained GenerationA

Prompts an LLM to generate valid SVG by embedding an explicit element/attribute allowlist and a one-shot example, then extracts the last valid SVG block from output.

ai-agentspythongo
0
61
Swarm Tactic DiversityA

Assign each new agent a different directional rotation pattern from a set of permutations to ensure swarm coverage diversity across the map

ai-agentspythongo
0
61
Synthetic Data AugmentationA

Generates additional training examples using a stronger LLM (e.g., GPT-3.5) to augment small labeled datasets.

ai-agentspythongo
0
61
Test Time Train Pseudo Label ExpansionA

Convert a test.csv with paired positive/negative example columns into a labeled training set at inference time, using the OTHER example as the in-prompt demonstration so the model never sees its own target as a few-shot exemplar

ai-agentspythongo
0
61
Tfidf Chunked RetrievalA

Scalable TF-IDF retrieval over large document corpora using frozen vocabulary and chunked top-k merging.

ai-agentspython
0
61
Threaded Multi Gpu InferenceA

Run multiple LLM inference jobs in parallel using Python threads, each pinned to a separate GPU with staggered starts

documentationpythongit
0
61
Turn Based Prompt AccumulationA

Rebuild multi-turn conversation context by interleaving user/assistant turns with chat template tokens into a single prompt each call

ai-agentspythonapi
0
61
Two Pass Retrieval RefinementA

Refines retrieval by running two passes: initial embedding retrieval to get candidates, then LLM-generated text concatenated with the query for a second retrieval pass.

ai-agentspython
0
61
Vllm Lora Adapter InferenceA

Serve a quantized base LLM with a hot-swappable LoRA adapter under vLLM, enabling prefix caching and tensor parallelism so a single fine-tuned adapter runs at production throughput without merging weights

ai-agentspython
0
61
Weighted Attack Strategy SamplingA

Sample from a pool of adversarial prompt strategies with per-strategy probability weights to hedge across judge models

ai-agentspythondebugging
0
61
Wikipedia Rag RetrievalA

Dense retrieval over a FAISS-indexed Wikipedia corpus to provide grounding context for LLM question answering.

ai-agentspython
0
61
8bit Optimizer Embedding OverrideA

Uses bitsandbytes 8-bit AdamW to halve optimizer memory, with a 32-bit override for embedding weights to prevent instability.

toolspython
0
61
Adafactor Label Smoothing Seq2seqA

Use Adafactor optimizer with label smoothing for seq2seq fine-tuning — memory-efficient and regularizes overconfident predictions

datapython
0
61
Adjacent Span MergingA

Merges nearby predicted NER spans of the same class within a word-distance threshold into single coherent segments.

documentationpython
0
61
Anchor Grouped ValidationA

Split validation by unique anchor/query entities so no anchor appears in both train and val, preventing data leakage in pairwise matching tasks

documentationpython
0
61
Attention Head PoolingA

Learns attention weights over token positions to compute a weighted average of hidden states for sequence representation.

developmentpython
0
61
Auxiliary Target MultitaskA

Train main target alongside auxiliary sub-type targets as multiple output heads to regularize and improve generalization

developmentpythongit
0
61
Averaged Meta EmbeddingA

Element-wise average of multiple pretrained embedding matrices as a parameter-free meta-embedding

ai-agentspython
0
61
Best Prob Fallback MatchingA

When no candidate passes the threshold for a query, fall back to the single highest-scoring match to guarantee at least one prediction per query

ai-agentspython
0
61
Bias Aware Auc MetricA

Combine subgroup AUC, BPSN AUC, and BNSP AUC across identity groups via power-mean weighting with overall AUC for fairness evaluation

developmentpythonperformance
0
61
Bidirectional Translation AugmentationA

Double training data by adding reverse-direction translation pairs with task prefix prompts

datapythonperformance
0
61
Bio Tag Span ReconstructionA

Reconstructs named entity spans from BIO token-level tags, handling B/I/O transitions and sentence boundaries.

businesspython
0
61
Bio Tagging Sliding WindowA

Splits long documents into overlapping fixed-length windows with BIO NER tags for BERT token classification on sequences exceeding max length.

datapython
0
61
Bpe Offset Char AlignmentA

Reconstruct character-level offsets for BPE tokens by decoding each token individually and accumulating lengths for precise span mapping

developmentpython
0
61
Bucket Batching Seq2seqA

Group variable-length sequences into length-sorted buckets before batching to minimize padding waste during seq2seq inference

developmentpythongo
0
61
Category Weighted Score FusionA

Converts multi-label binary flags into a continuous regression target by applying hand-tuned per-category multipliers, then averaging across categories.

testingpythongo
0
61
Char Prob Weighted BlendA

Blend character-level probability arrays from multiple models with OOF-tuned weights before thresholding

toolspython
0
61
Checkpoint Ensemble ExponentialA

Average predictions from each epoch checkpoint with exponentially increasing weights (2^epoch), favoring later more-converged snapshots

datapythongit
0
61
Chrf Bleu Geometric Mean MetricA

Geometric mean of chrF and BLEU as a balanced composite translation evaluation metric

developmentpythongo
0
61