Skip to content

New exercise for "Commands and Arguments" concept - #980

Merged
glennj merged 8 commits into
exercism:mainfrom
glennj:concept-exercise-shopping
Nov 26, 2026
Merged

glennj merged 8 commits into
exercism:mainfrom
glennj:concept-exercise-shopping

Conversation

@glennj

@glennj glennj commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

This greatly simplifies the concept's Introduction to make the exercise easier to work with. The About has only changed slightly.

I'm also checking in the coding assistant rules. I'm not an expert, so these could likely be improved.

Regarding the exercise, I'm particularly interested if the hints give away too much of the solution. I tried to keep focus on the design goals, so the students don't need to know how head or wc work.

@glennj glennj added x:action/create Work on something from scratch x:module/concept Work on Concepts x:module/concept-exercise Work on Concept Exercises x:type/content Work on content (e.g. exercises, concepts) x:rep/large Large amount of reputation labels Nov 23, 2026
@glennj
glennj requested a review from a team November 23, 2026 21:24
@glennj

glennj commented Nov 23, 2026

Copy link
Copy Markdown
Contributor Author

I have Lasagna exercise for Variables concept queued up after this. Then will be upgrading the test runner to V3


## Step 2: Register the exercise in the track config

Edit the top-level `config.json`:

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Should the configlet tool be used?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Yes. I have an upcoming PR that updates that.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

But this is no longer relevant as I've untracked the agent files.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

If the skill is made track-agnostic, there might be value in sharing Exercism skill files in a generic repo.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I've put them in a private repo with structure:

<lang-slug>
+-> AGENTS.md
+-> .agents/

And a script to symlink those into my cloned repos, and add the links in to the repo's .git/info/exclude.

Just bash so far.

To be effective, the agent has to have solid knowledge of the repo structure, and the language policies used on the track. For example, how to create the tests for the bash track. That pretty much has to be baked into the skill so the LLM doesn't have to waste tokens to rediscover the rules every time.

I could perhaps come up with some guidelines for tracks to create docs that the AGENTS and skills can refer to. For example I added markdown style to the POLICIES doc.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Other maintainers may find that helpful :)


### Comments

A line beginning with `#` is a _comment_, and Bash ignores it.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

The casing of bash vs Bash is inconsistent.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Will review

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Added a commit. I tried to differentiate between bash the executable and Bash the language. Sometimes a sentence starts with a lower case bash. I'd appreciate another set of eyes looking just at this.

Comment thread AGENTS.md Resolved
@glennj
glennj requested a review from a team as a code owner November 25, 2026 12:43
- shopping.bats: use run --keep-empty-lines so assert_line --index numbers match the visible output, assert the blank lines between tasks explicitly, and declare bats_require_minimum_version 1.5.0.

- concepts/commands-and-arguments: focus introduction.md on what the exercise teaches (shebang, comments, words and arguments, echo, quoting); the trimmed content remains in about.md, which also gains the echo details and the env-shebang emphasis.

- Derive the exercise introduction from the concept introduction and add .docs/introduction.md.tpl; 'configlet generate' reproduces it verbatim.

- add-concept-exercise skill: require a learning-objectives coverage review during validation.

- Remove todo.md: all items addressed.
@glennj
glennj force-pushed the concept-exercise-shopping branch from db385ba to 055e801 Compare November 25, 2026 13:11
Comment thread POLICIES.md Resolved
Co-authored-by: Isaac Good <IsaacG@users.noreply.github.com>
@glennj glennj added the ready-to-translate The English in this PR is final; queue its translations label Nov 26, 2026
exercism-i18n Bot added a commit to exercism/i18n that referenced this pull request Nov 26, 2026
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@exercism-i18n

exercism-i18n Bot commented Nov 26, 2026

Copy link
Copy Markdown

This PR has been translated 🚀

@glennj
glennj merged commit 4c7ab85 into exercism:main Nov 26, 2026
12 of 13 checks passed
@glennj
glennj deleted the concept-exercise-shopping branch November 26, 2026 23:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready-to-translate The English in this PR is final; queue its translations x:action/create Work on something from scratch x:module/concept Work on Concepts x:module/concept-exercise Work on Concept Exercises x:rep/large Large amount of reputation x:type/content Work on content (e.g. exercises, concepts)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants