Skip to content

Standardize the Spence guide and next commands - #1

Merged
johnjosephhorton merged 2 commits into
mainfrom
docs/package-workflow-guide
Nov 28, 2026
Merged

johnjosephhorton merged 2 commits into
mainfrom
docs/package-workflow-guide

Conversation

@johnjosephhorton

@johnjosephhorton johnjosephhorton commented Nov 28, 2026 •

Copy link
Copy Markdown
Contributor

Using the package

Run spence guide after installation to read the package workflow. Use spence next to get the next step from the package’s project state. Project location and input options follow this package’s own CLI. Before installation, EDSL can point to the existing documentation.

Exposes the installed README and recommends a next action from the local hiring workspace without contacting the configured provider.

Verification

Built a wheel, installed it in a disposable environment, and invoked the guide through the installed console script from a temporary directory. Tested the installed next command against an initialized project.

Directory rollout · EDSL discovery

@johnjosephhorton johnjosephhorton changed the title Make the Spence workflow guide available before installation Standardize the Spence guide and next commands Nov 28, 2026
@johnjosephhorton
johnjosephhorton marked this pull request as ready for review November 28, 2026 01:38
@johnjosephhorton
johnjosephhorton merged commit 722b0bb into main Nov 28, 2026
4 checks passed
@greptile-apps

greptile-apps Bot commented Nov 28, 2026 •

Copy link
Copy Markdown

Confidence Score: 4/5 · Fix spence next before merging so it guides users through the required setup instead of repeatedly suggesting empty lists.RetriggerView in GreptileConfidence Score: 4/5

[Medium impact] The changes reach users of the Spence CLI and their local project workflow.

Fix spence next before merging so it guides users through the required setup instead of repeatedly suggesting empty lists.

Findings

  1. P1 Next skips required setup ▶
  2. P2 Post suggestion uses wrong format ▶

Summary

Adds spence guide to return the installed README and spence next to suggest commands from local workspace records.

  • The installed Spence command returns its package workflow.
  • Spence suggests a command based on the current workspace's progress.

Reviews (1) · Last reviewed commit: "Use the native guide and project next co..." · Reviewed by Greptile

Comment thread src/spence/cli.py
Comment on lines +426 to +429
elif not store.list("application"):
command = "spence applications list"
else:
command = "spence reviews list"

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Next skips required setup

After a user imports a role and post and creates an opening, spence next suggests spence applications list, even when no form or publication exists. That command returns an empty list without advancing setup, so next keeps suggesting it. Once applications exist, the same problem occurs with spence reviews list when reviews have not been prepared.

Check the opening's setup and publication state first, then suggest the missing setup or sync step.

Comment thread src/spence/cli.py
elif not store.list("opening"):
command = "spence opening create --help"
elif not store.list("post"):
command = "spence post import POST.json"

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Post suggestion uses wrong format

The suggested spence post import POST.json command reads the whole file as plain text because it omits --mccall-export. A user supplying the documented JSON export will silently store its JSON wrapper as the job post, which later appears in the application form. Suggest POST.md for the default mode, or include --mccall-export for JSON exports.

Suggested change
command = "spence post import POST.json"
command = "spence post import POST.md"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant