agentsclimarketplace

Create crm workflow

Skill khaoss85/agent-crm/skills/create-crm-workflow

Implement a deterministic cross-module CRM process with policy, trace, audit and optional human approval. Use for stage transitions, follow-ups, onboarding, renewals and approval rules. Do not use for a stated business objective ("we need to manage renewals") — that is solve-business-goal, which discovers what exists first and may call this skill itself; nor for a single custom object (create-crm-module), a named milestone (the build-* skills) or a failing run (debug-crm-run).From its SKILL.md

Install
npx -y skills add khaoss85/agent-crm --skill create-crm-workflow

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 2 stars2 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

SKILL.md

4.0 KB, as published. Nobody here has run it

Orient yourself first

npm run crm -- app inspect --json

Read valid, then problems[], then limitations[], in that order. Every problem is fixed or reported before anything is built on top of it, and every limitation is a hard boundary on what you may claim. Then read packages[], capabilities[], resources[], actions[], policies[] and providers[]: that list is what exists. A capability absent from the report does not exist, whatever a record name, a label or a document suggests.

If the repository documents this skill names are absent, you are in a project built from this framework rather than in the framework itself. The inspection report is then the source of truth and those documents are optional background — do not guess at their contents, and do not assume a path exists because this skill names it.

actions[] tells you which lifecycle steps already exist and their declared fromStates, which is usually the answer to step 0 below.

  1. First decide which tool fits. A lifecycle step on one record (qualify, close, approve) is a record action — see the create-crm-module skill, and docs/ACTIONS.md as background where the project carries it; the action runtime already gives you one atomic transaction, events released only after commit, and a trace. Use a workflow for a multi-record or multi-step process, or when a human approval gate is involved. 0b. Do not write a task table. If the step you are adding means "a person must now do something", that is one shared model: work-task and work-activity, opened through the work package's declared capability work/follow-up@1 inside your own transaction, keyed by a business identity that never contains a clock — that last part is yours to guarantee: Work refuses invalid syntax, not a key that looks like a timestamp, so derive it from a committed record id and prove it with a retry test of your own. It will also refuse to write at all if you call it outside a transaction, rather than risk a task without its activity. Check capabilities[] in the inspection report for it. A second per-domain task table is the divergence Work v1 exists to stop (docs/WORK_TASKS.md, ADR-030 as background where the project carries them). Two things it is not: it schedules nothing — dueAt is evidence and no clock moves a status — and it notifies and assigns nobody. If the business event does not actually imply human work, create no task.
  2. Read the workflow engine and an existing workflow in this project's own source (packages/workflows/src/engine.js here). The engine is the contract; copy an existing workflow's shape rather than inventing one.
  3. Express the business process as small named steps.
  4. Keep policy deterministic and explicit; an LLM may recommend but must not silently decide protected state.
  5. Use module services for all state changes.
  6. Add compensation for external reversible side effects.
  7. Emit domain events only after the authoritative state change succeeds.
  8. Test the policy boundary, failure path and final trace.
  9. Run npm run verify and document any new architectural rule.

Keep looking

Skills are one crate of 607,533. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.