This is a basic configuration for eca which is a editor agnostic frame
work for connecting skills and tools to an agententic workflow. This
is important if you don't want to be tied to a particular platforms
editor choice.
These would often be user specific but I've included them in this
series to show what sort of things they can do.
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
---
.eca/config.json | 43 +++++++++++++++++++++++++++++++++
.eca/skills/checkpatch/SKILL.md | 9 +++++++
.eca/skills/gtags/SKILL.md | 7 ++++++
3 files changed, 59 insertions(+)
create mode 100644 .eca/config.json
create mode 100644 .eca/skills/checkpatch/SKILL.md
create mode 100644 .eca/skills/gtags/SKILL.md
diff --git a/.eca/config.json b/.eca/config.json
new file mode 100644
index 00000000000..81b0c97782e
--- /dev/null
+++ b/.eca/config.json
@@ -0,0 +1,43 @@
+{
+ "customTools": {
+ "gtag_find_symbol_definition": {
+ "description": "Use GNU global tags to search for the symbol defintion. Return in ctags-x format",
+ "command": "global --result ctags-x -d {{pattern}}",
+ "schema": {
+ "properties": {
+ "pattern": {
+ "type": "string",
+ "description": "an extended regex pattern or literal string to search for"
+ }
+ },
+ "required": ["pattern"]
+ }
+ },
+ "gtag_find_symbol_completions": {
+ "description": "Use GNU global tags to list potential symbol completions for a word stem.",
+ "command": "global -c {{stem}}",
+ "schema": {
+ "properties": {
+ "stem": {
+ "type": "string",
+ "description": "an string stem of a symbol"
+ }
+ },
+ "required": ["stem"]
+ }
+ },
+ "gtag_find_symbol_references": {
+ "description": "Use GNU global tags to find references to a symbol. Returns results in ctags-x format.",
+ "command": "global --results ctags-x -r {{pattern}}",
+ "schema": {
+ "properties": {
+ "pattern": {
+ "type": "string",
+ "description": "an extended regex pattern or literal string to search for."
+ }
+ },
+ "required": ["pattern"]
+ }
+ }
+ }
+}
diff --git a/.eca/skills/checkpatch/SKILL.md b/.eca/skills/checkpatch/SKILL.md
new file mode 100644
index 00000000000..49c556bed2e
--- /dev/null
+++ b/.eca/skills/checkpatch/SKILL.md
@@ -0,0 +1,9 @@
+---
+name: checkpatch
+description: run checkpatch on a file or patch to validate style issues
+---
+
+# Instructions
+Run `./scripts/checkpatch.pl [FILE]` to check a file for style issues.
+
+You can also use a GIT-REV-LIST to check against git, e.g. run `./scripts/checkpatch.pl HEAD^..` to run checkpatch on the last commit.
diff --git a/.eca/skills/gtags/SKILL.md b/.eca/skills/gtags/SKILL.md
new file mode 100644
index 00000000000..b158981b1ae
--- /dev/null
+++ b/.eca/skills/gtags/SKILL.md
@@ -0,0 +1,7 @@
+---
+name: update gtags
+description: update the GNU global tags file.
+---
+
+# Instructions
+Run `make gtags` in the root of the source tree.
--
2.47.3