raphaelstolt / raphaelstolt/llms-txt-php-cli
Add an anlyse command
Open
Nobody has claimed this yet.
enhancement
- Dominant language
- PHP
- Stars
- 3
- Forks
- 1
- PR merge metrics
- No merged PRs in 30d
Description
In addition to the validate command, there should be an analyze command.
llms-txt-cli analyze llms.txt
Output could be:
llms.txt Analysis
────────────────────────────────────
Structure 10/10
Content 8/10
Links 9/10
Discoverability 7/10
Token efficiency 8/10
Overall 8.4/10 A
✓ H1 title
✓ Blockquote description
✓ 7 sections
✓ 42 links
✓ All URLs are HTTPS
✓ No duplicate URLs
⚠ 3 links have no descriptions
⚠ 2 sections contain > 15 links
⚠ 1 URL redirects
⚠ No llms-full.txt reference
Recommendations:
1. Add descriptions to 3 links
2. Consider splitting "API Reference"
3. Check redirected URLs
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reading the existing validate command and the CLI entry point to understand how commands are registered and how llms.txt files are processed. Define the analysis criteria, scoring, warnings, and recommendations represented by the proposed output; done means llms-txt-cli analyze llms.txt produces a consistent report.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- cli, documentation
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100