Explore

Find agent skills by outcome

125,599 skills indexed with the new KISS metadata standard.

Showing 24 of 125,599Categories: Data & Insights, Coding & Debugging, Cursor-rules, General, Communication
General
PromptBeginner5 minmarkdownQuality: 28

- Inverse of unlist: given a flat vector and a skeleton list

reconstructs the nested structure.

0
General
PromptBeginner5 minmarkdownQuality: 24

- `modifyList(x

val) replaces elements of list x with those in val` by name.

0
General
PromptBeginner5 minmarkdownQuality: 24

- Checks attributes

names

0
General
PromptBeginner5 minmarkdownQuality: 24

- FUN argument applies a function to each combination: `combn(5

3

0
General
PromptBeginner5 minmarkdownQuality: 24

- `combn(n

m) or combn(x

0
General
PromptBeginner5 minmarkdownQuality: 24

- Tests near equality with tolerance (default 1.5e-8

i.e.

0
General
PromptBeginner5 minmarkdownQuality: 28

- Returns TRUE or a character string describing the difference — NOT FALSE. Use `isTRUE(all.equal(x

y))` in conditionals.

0
General
PromptBeginner5 minmarkdownQuality: 24

- Custom conditions: `stop(errorCondition(msg

class = myError)) then catch with tryCatch(...

0
General
PromptBeginner5 minmarkdownQuality: 28

- tryCatch unwinds the call stack — handler runs in the calling environment

not where the error occurred. Cannot resume execution.

0
General
PromptBeginner5 minmarkdownQuality: 24

- `tryCatch(expr

error = function(e) e)` returns the error condition object.

0
General
PromptBeginner5 minmarkdownQuality: 24

- `Position(f

x) returns the index of the first match (like Find` but returns position

0
General
PromptBeginner5 minmarkdownQuality: 28

- lengths(x) returns the length of each element of a list. Equivalent to `sapply(x

length)` but faster (implemented in C).

0
General
PromptBeginner5 minmarkdownQuality: 24

- `Find(f

x) returns the first element where f(elem) is TRUE. Find(f

0
General
PromptBeginner5 minmarkdownQuality: 24

- `Map(f

...) is a simple wrapper for mapply(f

0
General
PromptBeginner5 minmarkdownQuality: 24

- `Filter(f

x) keeps elements where f(elem) is TRUE. Unlike x[sapply(x

0
General
PromptBeginner5 minmarkdownQuality: 24

- `Reduce(f

x

0
General
PromptBeginner5 minmarkdownQuality: 24

- `Reduce(f

x

0
General
PromptBeginner5 minmarkdownQuality: 24

- `Reduce(f

x) applies binary function f cumulatively: Reduce(+

0
General
PromptBeginner5 minmarkdownQuality: 24

- `do.call(fun

args_list) — args` must be a list

0
General
PromptBeginner5 minmarkdownQuality: 24

Non-obvious behaviors

gotchas

0
General
PromptBeginner5 minmarkdownQuality: 24

- Use stop()

warning()

0
General
PromptBeginner5 minmarkdownQuality: 24

- `with(df

expr) avoids repeating df$` everywhere

0
General
PromptBeginner5 minmarkdownQuality: 28

- misc-utilities.md — Read when: do.call behaves differently than direct call

need Reduce/Filter/Map

0
General
PromptBeginner5 minmarkdownQuality: 28

- dates-and-system.md — Read when: Date/POSIXct conversion gives wrong day

time zones cause off-by-one

0