Repository navigation
New exercise for "Commands and Arguments" concept - #980
Conversation
|
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`: |
There was a problem hiding this comment.
Should the configlet tool be used?
There was a problem hiding this comment.
Yes. I have an upcoming PR that updates that.
There was a problem hiding this comment.
But this is no longer relevant as I've untracked the agent files.
There was a problem hiding this comment.
If the skill is made track-agnostic, there might be value in sharing Exercism skill files in a generic repo.
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Other maintainers may find that helpful :)
|
|
||
| ### Comments | ||
|
|
||
| A line beginning with `#` is a _comment_, and Bash ignores it. |
There was a problem hiding this comment.
The casing of bash vs Bash is inconsistent.
There was a problem hiding this comment.
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.
- 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.
db385ba to
055e801
Compare
Co-authored-by: Isaac Good <IsaacG@users.noreply.github.com>
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
|
This PR has been translated 🚀 |
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
headorwcwork.