Skip to content
Back to skills

Domain Tasks

ASecurity

Task creation and completion logic and validation rules. Use when touching src/tasks/ or task status transitions.

  • 12 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added October 6, 2026
developmentbackend

Security analysis

A100/100

Scanned October 6, 2026

npx -y skills add insideout-ai/make-it-work --skill domain-tasks --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Domain Tasks?

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

Security grade badge for Domain Tasks
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/insideout-ai-domain-tasks-38138067/badge)](https://www.skillsdirectory.com/skills/insideout-ai-domain-tasks-38138067)

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: domain-tasks
description: "Task creation and completion logic and validation rules. Use when touching src/tasks/ or task status transitions."
---

## Summary

Owns creating and completing tasks: in-memory objects with a title, owner, assignee, status, and soft-delete marker.

## Domain Validation Rules and Business Logic

- `createTask` requires a non-empty `title`; throws otherwise.
- `completeTask` throws if the task's status is already `done`.
- `completeTask` must not succeed for a soft-deleted task (`deletedAt` set) — it must look the task up through `getTaskById`, never through the raw `tasks` array, so the soft-delete filter always applies.

## Backend Functions

| Function | Import path | Called from | Key params/returns |
|---|---|---|---|
| `createTask` | `src/tasks/createTask.js` | UC-01 | `{ title, ownerId }` → task object with `status: 'open'` |
| `getTaskById` | `src/tasks/taskRepo.js` | UC-02 | `id` → task object or `null`; filters out soft-deleted rows |
| `completeTask` | `src/tasks/completeTask.js` | UC-02 | `id` → task object with `status: 'done'` |

## Cross-references

- Related Use Case Skills: `/uc-01-create-task`, `/uc-02-complete-task`

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.

Comments

Loading comments…

Newsletter

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