feat(llm): add instructions md file for claude and other LLM tools (#6017)
* add claude instructions file * update structure * Update llm/AGENTS.md Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com> * Update llm/AGENTS.md Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com> * move to root * symlink --------- Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
This commit is contained in:
1 parent
b058ec7c72
commit
f231eff598
3 files changed
+223
No files matched your search
@@ -1,5 +1,7 @@
|
||||
console.log('preinstall.js');
|
||||
|
||||
const fs = require('fs');
|
||||
const path = require('path');
|
||||
const { exec } = require('child_process');
|
||||
const log = (err, stdout, stderr) => console.log(stdout);
|
||||
|
||||
@@ -11,3 +13,22 @@ if (GITHUB_TOKEN) {
|
||||
} else {
|
||||
console.log('No GITHUB_TOKEN found, skipping private repo customization');
|
||||
}
|
||||
|
||||
const agentsPath = path.join(__dirname, 'AGENTS.md');
|
||||
const claudePath = path.join(__dirname, 'CLAUDE.md');
|
||||
|
||||
try {
|
||||
if (fs.existsSync(agentsPath)) {
|
||||
try {
|
||||
fs.unlinkSync(claudePath);
|
||||
} catch (err) {
|
||||
if (err.code !== 'ENOENT') {
|
||||
throw err;
|
||||
}
|
||||
}
|
||||
fs.symlinkSync('AGENTS.md', claudePath);
|
||||
console.log('Linked CLAUDE.md -> AGENTS.md');
|
||||
}
|
||||
} catch (err) {
|
||||
console.log(`Skipped CLAUDE.md symlink: ${err.message}`);
|
||||
}
|
||||
Reference in new issue
Block a user