Skip to content

Failing LLM Anthropic Calls #34

Closed
Closed

Description

@builder-org443

We are evaluating this for AIpkgs and we noticed that the scan, even with LLM integration to claude-opus-4-6 was presenting a large amount of false positives.

For example we were evaluating this skill https://github.com/antfu/skills/tree/main/skills/vue and it had multiple issues raised that seemed like it could be filtered out via the LLM integration or statically.

This was the report that was generated:
report.json

  1. It looks like the "Hidden Instructions" don't consider the file extension or what type of file when classifying comments.
  2. We saw a pattern where the mere mention of "Always use" or "return rules" would trigger the "Behavior Manipulation" or "Direct Prompt Extraction" respectively.
  3. There was also an issue with bundled and minified JS always being flagged as"Context Window Stuffing"

Bellow are some screenshots of findings in their code_snippets highlighted in the context that were flagged in the above skill. These were all markdown files.

Image Image Image

I think the idea and work SkillSpector is doing is great, btw!

Activity

  1. builder-org443 commented on Jun 13, 2026

    @builder-org443
    Author

    While looking through the report and the code I also noticed that intent doesn't look to ever get populated. I was checking if it was possible this wasn't analyzed by the LLM to filter the false positive.

    Also some warnings I am seeing

    WARNING [skillspector.nodes.analyzers.semantic_security_discovery] semantic_security_discovery failed: Error code: 400 - {'error': {'code': 'invalid_request_error', 'message': "For 'integer' type, property 'minimum' is not supported", 'type': 'invalid_request_error', 'param': None}}
    WARNING [skillspector.nodes.analyzers.semantic_quality_policy] semantic_quality_policy failed: Error code: 400 - {'error': {'code': 'invalid_request_error', 'message': "For 'integer' type, property 'minimum' is not supported", 'type': 'invalid_request_error', 'param': None}}
    WARNING [skillspector.nodes.analyzers.semantic_developer_intent] semantic_developer_intent failed: Error code: 400 - {'error': {'code': 'invalid_request_error', 'message': "For 'integer' type, property 'minimum' is not supported", 'type': 'invalid_request_error', 'param': None}}
    WARNING [skillspector.nodes.meta_analyzer] LLM call failed, using fallback: Error code: 400 - {'error': {'code': 'invalid_request_error', 'message': "For 'number' type, properties maximum, minimum are not supported", 'type': 'invalid_request_error', 'param': None}}
    

    I'm using Anthropic claude-opus-4-6

  2. builder-org443 commented on Jun 13, 2026

    @builder-org443
    Author

    I think it has to do with the Anthropic's OpenAI-compatibility endpoint via ChatOpenAI which has some restrictions

    This looks like it worked, removing the ge and le.

    confidence: float = Field(ge=0.0, le=1.0, default=0.5, description="Confidence score")

    -    confidence: float = Field(ge=0.0, le=1.0, default=0.5, description="Confidence score")
    +    confidence: float = Field(default=0.5, description="Confidence score between 0.0 and 1.0")
    

    start_line: int = Field(ge=1, description="Starting line number")

    -    start_line: int = Field(ge=1, description="Starting line number")
    +    start_line: int = Field(description="Starting line number")
    
  3. changed the title [-]False Positives[/-] [+]False Positives - Failing LLM Anthropic Calls[/+] on Jun 13, 2026
  4. changed the title [-]False Positives - Failing LLM Anthropic Calls[/-] [+]Failing LLM Anthropic Calls[/+] on Jun 13, 2026
  5. added a commit that references this issue on Jun 16, 2026
  6. keshprad commented on Jun 16, 2026

    @keshprad
    Contributor

    Closing as resolved by #85, which adds native Anthropic provider support and resolves the structured-output tool schema failures caused by unsupported minimum/maximum parameters.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions