Development Lifecycle
This page walks through common team development workflows end-to-end, showing every command and its expected output. Use these as recipes for your own team development.
For the consumer perspective (installing, using, and updating teams), see Installing & Using.
Author lifecycle
Section titled “Author lifecycle”The full create-to-publish loop: build a team locally, iterate on it, version it, and publish to CliqHub.
1. Create the team
Section titled “1. Create the team”cliq team new @myorg/deploy-pipeline✓ Created @myorg/deploy-pipeline → ./deploy-pipeline/@myorg/deploy-pipeline/team.ymlThis creates the team directory in the current working directory with a team.yml skeleton and an empty roles/ directory.
2. Build it out
Section titled “2. Build it out”Add roles and generate a workflow:
cliq team add-role @myorg/deploy-pipeline architect --from ./templates/architect.mdcliq team add-role @myorg/deploy-pipeline deployercliq team gen-workflow @myorg/deploy-pipelineEdit the workflow and roles until you’re satisfied:
cliq team edit-workflow @myorg/deploy-pipelinecliq team validate @myorg/deploy-pipeline3. Test locally
Section titled “3. Test locally”Install to the global registry and assemble in a test project:
cliq team install ./@myorg/deploy-pipelineInstalling @myorg/deploy-pipeline v1.0.0...✓ Installed to ~/.cliqrc/teams/@myorg/deploy-pipeline/cd ~/test-projectcliq initcliq assemble @myorg/deploy-pipelinecliq req -m "Deploy the staging environment"cliq run4. Iterate
Section titled “4. Iterate”Make changes to the source directory, bump the version, and reinstall:
vim ./@myorg/deploy-pipeline/roles/deployer.mdcliq team version patch @myorg/deploy-pipelinev1.0.0 → v1.0.1cliq team install ./@myorg/deploy-pipelineUpgrading @myorg/deploy-pipeline 1.0.0 → 1.0.1✓ Installed to ~/.cliqrc/teams/@myorg/deploy-pipeline/Or use cliq team update if the team is already installed with provenance:
cliq team update @myorg/deploy-pipeline5. Publish
Section titled “5. Publish”Authenticate and publish to CliqHub:
cliq hub logincliq team publish ./@myorg/deploy-pipeline -m "Initial release"Validating team...✓ Team validPublishing @myorg/deploy-pipeline v1.0.1 to https://cliqhub.io...✓ Published @myorg/deploy-pipeline v1.0.1
Changelog: Initial release View: https://cliqhub.io/@myorg/deploy-pipeline6. Ship updates
Section titled “6. Ship updates”vim ./@myorg/deploy-pipeline/roles/architect.mdcliq team version minor @myorg/deploy-pipelinev1.0.1 → v1.1.0cliq team publish ./@myorg/deploy-pipeline -m "Added rollback phase"✓ Published @myorg/deploy-pipeline v1.1.0@local lifecycle
Section titled “@local lifecycle”Quick local development without scopes or publishing. Good for experimentation and project-specific teams.
1. Create
Section titled “1. Create”cliq team new my-experiment✓ Created my-experiment → ./my-experiment/team.ymlThe team has an unscoped name. When installed, it goes to @local/.
2. Develop and test
Section titled “2. Develop and test”cliq team add-role my-experiment researchercliq team add-role my-experiment writercliq team gen-workflow my-experimentTest directly with --dir:
cd ~/test-projectcliq initcliq assemble my-experiment --dir ~/my-experiment3. Install for reuse
Section titled “3. Install for reuse”cliq team install ~/my-experimentInstalling @local/my-experiment v1.0.0...✓ Installed to ~/.cliqrc/teams/@local/my-experiment/Now use it anywhere without --dir:
cliq assemble my-experiment4. Update from source
Section titled “4. Update from source”Edit the source, bump the version:
vim ~/my-experiment/roles/researcher.mdcliq team version patch my-experimentcliq team update @local/my-experimentUpdating @local/my-experiment 1.0.0 → 1.0.1 from /Users/you/my-experiment...✓ UpdatedFork & customize lifecycle
Section titled “Fork & customize lifecycle”Start from an existing team, customize it, and publish under your own scope. This is the most common path for teams that extend or specialize an official @cliq team.
1. Install the base team
Section titled “1. Install the base team”cliq team install hub://@cliq/feature-dev-js✓ Installed @cliq/feature-dev-js v1.2.02. Copy to a local directory
Section titled “2. Copy to a local directory”cliq team copy @cliq/feature-dev-js ./my-tddThis copies all files into ./my-tdd/. The team.yml still says name: @cliq/feature-dev-js — you haven’t claimed a new identity yet.
3. Edit and iterate
Section titled “3. Edit and iterate”Modify roles, adjust the workflow, test from the local directory:
vim ./my-tdd/roles/developer.mdcliq assemble @cliq/feature-dev-js --dir .cliq req -m "Add input validation to the signup form"cliq runYou can repeat this cycle as many times as needed. The team identity stays as @cliq/feature-dev-js during development — the --dir . flag tells cliq to resolve from your local directory instead of the registry.
4. Re-scope when ready to share
Section titled “4. Re-scope when ready to share”When you’re happy with the changes, re-copy with your scope:
cliq team copy @cliq/feature-dev-js ./my-tdd-final @acme/my-tddThis creates ./my-tdd-final/ with team.yml rewritten to name: @acme/my-tdd. You can also pass just a scope to keep the original bare name:
cliq team copy @cliq/feature-dev-js ./my-feature-dev @acmeThis produces name: @acme/feature-dev-js in team.yml.
5. Install to your registry
Section titled “5. Install to your registry”cliq team install ./my-tdd-final Installing @acme/my-tdd v1.0.0 Type the full team name to confirm: @acme/my-tdd ✓ Installed @acme/my-tdd v1.0.0Since this is a fresh install (no existing @acme/my-tdd), there’s no overwrite prompt. If you later reinstall, cliq will ask you to type the full team name to confirm the overwrite. Use --force to skip.
6. Publish
Section titled “6. Publish”cliq team version patch @acme/my-tddcliq team publish ./my-tdd-final -m "Custom TDD pipeline based on @cliq/feature-dev-js" Publishing @acme/my-tdd v1.0.1 to https://cliqhub.io Type the full team name to confirm: @acme/my-tdd ✓ Published @acme/my-tdd v1.0.1Builder lifecycle
Section titled “Builder lifecycle”Use the AI builder to generate a team, then refine and publish.
1. Generate
Section titled “1. Generate”cliq builder generate -m "SOC2 compliance audit pipeline" --name @myorg/soc2-auditGenerating team... ✓ Created architect role ✓ Created auditor role ✓ Created evidence-collector role ✓ Created report-writer role ✓ Generated workflow (4 phases) ✓ Generated A2A metadata✓ Team created at ./@myorg/soc2-audit/2. Review and refine
Section titled “2. Review and refine”cliq team validate @myorg/soc2-auditcliq builder gaps @myorg/soc2-auditSuggestions: 1. [phase] Add a gap analysis phase before evidence collection 2. [role] Auditor role should reference specific SOC2 control families 3. [workflow] Consider adding a human gate after the report phasecliq builder improve @myorg/soc2-audit --role auditor \ --instruction "Reference SOC2 Type II control families CC1-CC9"3. Test, version, and publish
Section titled “3. Test, version, and publish”cliq team install ./@myorg/soc2-auditcd ~/test-project && cliq assemble @myorg/soc2-audit
cliq team version patch @myorg/soc2-auditcliq hub logincliq team publish ./@myorg/soc2-audit -m "Initial SOC2 audit pipeline"Summary
Section titled “Summary”| Workflow | Key commands |
|---|---|
| Author | team new → add-role → gen-workflow → team install → team version → team publish |
| @local | team new → develop → team install ./path → assemble |
| Fork & customize | team install hub:// → team copy → edit → team copy ... @scope → team install → team publish |
| Builder | builder generate → builder improve → team install → team publish |