Skip to content
Back to skills

Better All Best Practices

ASecurity

`better-all` conventions for dependency-aware async task graphs. Use when defining `all` or `allSettled` graphs or converting staged async work with task dependencies.

  • 14 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 6, 2026
documentationgitdocumentation

Security analysis

A100/100

Pro scans all 8 files and shows the line behind each finding

Scanned September 6, 2026

npx -y skills add Casper-Studios/casper-marketplace --skill better-all-best-practices --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Better All Best Practices?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Better All Best Practices
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/casper-studios-better-all-best-practices/badge)](https://www.skillsdirectory.com/skills/casper-studios-better-all-best-practices)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: better-all-best-practices
description: '`better-all` conventions for dependency-aware async task graphs. Use when defining `all` or `allSettled` graphs or converting staged async work with task dependencies.'
license: MPL-2.0
metadata:
  author: 'Basti Ortiz <ortiz@bastidood.dev>'
  source: 'https://github.com/BastiDood/skills'
---

# `better-all` Best Practices

Model concurrent work as a dependency graph whose task names define the data flow, so independent operations run together while dependent operations remain explicit, inferred, cancellable, and predictable when failures occur.

## Library Sources

- GitHub repository ID: `shuding/better-all`
- Context7 library ID: `/shuding/better-all`
- DeepWiki repository ID: `shuding/better-all`

Use Context7 for current documentation and DeepWiki for implementation details.

## Effective Strategies for `better-all`

Read the references that apply to the current task before writing or reviewing `better-all` code.

1. Declare concurrency and data dependencies in the task graph.
   - [Declare direct data dependencies in the task graph](./references/dependency-scheduling.md) so independent tasks run concurrently instead of being serialized by manual stages.
   - [Use method syntax for tasks that read sibling results](./references/task-method-syntax.md) so `this.$` is the bound task context rather than lexical `this`.
2. Let the graph own cancellation and failure semantics.
   - [Pass a child operation's task signal through](./references/sibling-cancellation.md) when it accepts an `AbortSignal`, so a sibling failure can stop that work without a second cancellation system.
   - [Choose the matching graph operation](./references/library-exports.md) when the caller needs either fail-fast behavior or every outcome instead of manually staging the dependency graph.
3. Preserve result information that the task graph already proves.
   - [Retain inferred task results](./references/inferred-task-results.md) when task return types already describe the result object so duplicated result interfaces cannot drift.

Files in this skill

  • LICENSE.txt16.3 KB
  • SKILL.md2 KB
  • agents/openai.yaml138 B
  • references/dependency-scheduling.md1003 B
  • references/inferred-task-results.md1.1 KB
  • references/library-exports.md544 B
  • references/sibling-cancellation.md417 B
  • references/task-method-syntax.md764 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in documentation →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.