feat: add update-template command to synchronize task.template with library.md
- Added `update-template` command that extracts rows from `library.md` and updates `task.template` - Implemented logic to replace existing rows in `task.template` with current rows from `library.md` - Added `update-template` to help-table for documentation and discoverability - Updated `library.md` and `task.template` to include new `update-template` command - Removed outdated prompt script that was no longer needed - Ensured all rows from `library.md` are properly synchronized with `task.template`
This commit is contained in:
7 files changed
+353
-265
No files matched your search
File diff suppressed because it is too large.
Load diff
@@ -1,3 +1,3 @@
|
||||
Read the AGENTS.md and README.md to get understanding of the project.
|
||||
|
||||
Update the feature list from line 19 in the README with matching emojies.
|
||||
Update the feature list from line 19 in the README with matching emojies.
|
||||
@@ -10,7 +10,7 @@ This section outlines the universal rules and expectations for any LLM agent wor
|
||||
|
||||
**Maintain Context:** Before making any changes, an agent must read and understand the relevant files, including the project's main documentation and existing code structure.
|
||||
|
||||
**Be Sparse:** Only introduce new code if needed. Comment only what is worth commenting. When testing focus on the business use case.
|
||||
**Be Sparse:** Only introduce new code if needed. Comment only what is worth commenting. When testing focus on the business use case.
|
||||
|
||||
## Project structure
|
||||
|
||||
|
||||
@@ -51,14 +51,6 @@ Then append the abort on error setting.
|
||||
set -e
|
||||
```
|
||||
|
||||
Load environment variables from the `.env` file.
|
||||
|
||||
```bash
|
||||
if [[ -a ".env" ]]; then
|
||||
source .env
|
||||
fi
|
||||
```
|
||||
|
||||
Add a help function.
|
||||
|
||||
```bash
|
||||
|
||||
+13
-3
@@ -6,7 +6,17 @@ layout: layouts/base.njk
|
||||
|
||||
The task file from the specification is very basic. Commands can also have parameters and call each other.
|
||||
|
||||
The following is a collection of more complex task file patterns.
|
||||
The following is a collection of advanced task file patterns.
|
||||
|
||||
## Load dotenv variables.
|
||||
|
||||
Load environment variables from the `.env` file.
|
||||
|
||||
```bash
|
||||
if [[ -a ".env" ]]; then
|
||||
source .env
|
||||
fi
|
||||
```
|
||||
|
||||
## Set default parameter
|
||||
|
||||
@@ -84,7 +94,7 @@ template-with-env() {
|
||||
}
|
||||
```
|
||||
|
||||
## Create Python virtual env for git branch
|
||||
## Create Python virtual env for git branch
|
||||
|
||||
Initialize Python virtual env with uv.
|
||||
|
||||
@@ -312,4 +322,4 @@ if [[ -d ".git" ]]; then
|
||||
export $(cat ".env.$GIT_BRANCH" | sed 's/^#.*//g' | xargs)
|
||||
fi
|
||||
fi
|
||||
```
|
||||
```
|
||||
@@ -12,7 +12,7 @@ help-table() {
|
||||
rows+=("commit-with-llm||Commit with llm generated commit message.")
|
||||
rows+=("dev-11ty||Run 11ty server.")
|
||||
rows+=("help|[grep]|Show help for commands.")
|
||||
rows+=("install||Install node packages.")
|
||||
rows+=("install||Install Node packages.")
|
||||
rows+=("lint||Lint code with prettier.")
|
||||
rows+=("run||Run Docker image.")
|
||||
rows+=("run-tests||Test with shellcheck.")
|
||||
@@ -106,10 +106,6 @@ dev-11ty() {
|
||||
|
||||
lint() {
|
||||
pnpm exec prettier . --write
|
||||
}
|
||||
|
||||
run-tests() {
|
||||
echo "Test with shellcheck."
|
||||
shellcheck task
|
||||
}
|
||||
|
||||
|
||||
@@ -1,10 +1,6 @@
|
||||
#!/usr/bin/env bash
|
||||
set -e
|
||||
|
||||
if [[ -a ".env" ]]; then
|
||||
source .env
|
||||
fi
|
||||
|
||||
help-table() {
|
||||
local -a rows
|
||||
local max_cmd=7 max_opt=6 max_desc=11
|
||||
|
||||
Reference in new issue
Block a user